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
63 comments
56.7k users