Closed cnrrobertson closed 2 months ago
Did you mean to have @aes
outside of the call to ggplot
or geom_point
? Both of the following work for me on v0.6.6
ggplot(penguins) +
geom_point(@aes(x=species, y=bill_depth_mm))
ggplot(penguins, @aes(x=species, y=bill_depth_mm)) +
geom_point()
[a93c6f00] DataFrames v1.6.1
[8b842266] PalmerPenguins v0.1.4
[337ecbd1] TidierPlots v0.6.6
aes()
outside of ggplot is valid in R's ggplot2, so we should look at supporting it in TidierPlots. I've noticed that this style is becoming popular, and it's essentially equivalent to writing ggplot(aes(...))
but is a bit cleaner.
This should be easy to add support for, I just didn't know people used this syntax
This works again in the dev version!
ggplot(penguins) +
aes(x=:species, y=:bill_depth_mm, color=:species) +
geom_boxplot()
Recently updated
Tidier
whereTidierPlots
was updated from 0.5.5 to 0.6.6 and@aes
is no longer working. Here's a simple example:with error: