The article discussing tidy evaluation in ggplot2 gives the impression that aes()
now supports quasiquoation. However, I\'m having problems getting it to work with
That's because aes()
takes x
and y
arguments and !!!
only works within dots. We'll try to solve this particular problem in the future. In the interim you'll need to unquote x
and y
individually, or use the following workaround:
aes2 <- function(...) {
eval(expr(aes(!!!enquos(...))))
}
ggplot(mtcars, aes2(!!!v)) + geom_point()