I recently had a large dataset where I wanted to make a series of plots with different variables on the y-axis. I remembered that a few years ago I great frustrated that I could not do this with ggplot, so I moved on. This time, I was successful.
The key, as this Stack Overflow answer shows, is to pass the string for the column wrapped in
UQ(as.name()). Below is the line from the function I made that does this:
results <- data.frame(data %>% group_by(graph_type, UQ(as.name(outfile))) %>% summarize(successDouble=mean(successDouble), successGreater35=mean(successGreater35), active_percent=mean(active_percent, na.rm=TRUE)))
outfile is the variable name. Easy!