We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47e6eb3 commit 6bce655Copy full SHA for 6bce655
R/plot-build.r
@@ -22,7 +22,7 @@ ggplot_build <- function(plot) {
22
}
23
24
layers <- plot$layers
25
- layer_data <- lapply(layers, function(y) y$data)
+ layer_data <- lapply(layers, function(y) y$layer_data(plot$data))
26
27
scales <- plot$scales
28
# Apply function to layer and matching data
@@ -39,7 +39,7 @@ ggplot_build <- function(plot) {
39
40
panel <- new_panel()
41
panel <- train_layout(panel, plot$facet, layer_data, plot$data)
42
- data <- map_layout(panel, plot$facet, layer_data, plot$data)
+ data <- map_layout(panel, plot$facet, layer_data)
43
44
# Compute aesthetics to produce data with generalised variable names
45
data <- by_layer(function(l, d) l$compute_aesthetics(d, plot))
0 commit comments