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:
548k questions
547k answers
4 comments
86.3k users