Skip to content

Commit f6f921a

Browse files
committed
scales have already been extracted from plot object
1 parent f5c40d0 commit f6f921a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/plot-build.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ build_ggplot <- S7::method(ggplot_build, class_ggplot) <- function(plot, ...) {
8383
data <- by_layer(function(l, d) l$map_statistic(d, plot), layers, data, "mapping stat to aesthetics")
8484

8585
# Make sure missing (but required) aesthetics are added
86-
plot@scales$add_missing(c("x", "y"), plot@plot_env)
86+
scales$add_missing(c("x", "y"), plot@plot_env)
8787

8888
# Reparameterise geoms from (e.g.) y and width to ymin and ymax
8989
data <- by_layer(function(l, d) l$compute_geom_1(d), layers, data, "setting up geom")

0 commit comments

Comments
 (0)