Try this using sym() and !!:
sym()
!!
v <- ('cty') v <- sym(v) plot <- mpg %>% ggplot(aes(x= model, y = !!v))+ geom_boxplot()+ coord_flip()+ geom_jitter(aes(color = year))
Output:
2.1m questions
2.1m answers
60 comments
57.0k users