I have a ggplot command
ggplot( rates.by.groups, aes(x=name, y=rate, colour=majr, group=majr) )
inside a function. But I would like to be a
Here's an extremely simple way!
Do these two things:
sym()
!!
Minimal Reproducible Example:
my_col <- sym("Petal.Length") iris %>% ggplot(aes(x = Sepal.Length, y = !!my_col)) + geom_point()