We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider the after_scale() example from ?aes_eval:
after_scale()
?aes_eval
library(ggplot2) # tidyverse/ggplot2@a132727 ggplot(mpg, aes(class, hwy)) + geom_boxplot(aes(colour = class, fill = after_scale(alpha(colour, 0.4))))
Moving the colour and fill specification form the geom to the initial ggplot() call causes the fill to not be mapped at all:
ggplot()
ggplot(mpg, aes(class, hwy, colour = class, fill = after_scale(alpha(colour, 0.4)))) + geom_boxplot()
The text was updated successfully, but these errors were encountered:
Thanks, this seems because Layer$compute_geom_2() refers only to the layer's mapping and ignores plot$mapping.
Layer$compute_geom_2()
plot$mapping
ggplot2/R/layer.r
Lines 356 to 364 in a132727
I think compute_geom_2() needs to take plot as we do with map_statistics().
compute_geom_2()
plot
map_statistics()
ggplot2/R/plot-build.r
Line 73 in a132727
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Consider the
after_scale()
example from?aes_eval
:Moving the colour and fill specification form the geom to the initial
ggplot()
call causes the fill to not be mapped at all:The text was updated successfully, but these errors were encountered: