I have a graph I'm making with multiple calls to x and y using the same dataset.
I want to be able to something like
x <- "variable_1"
y <- "variable_2"
y.min <- 100
so that I can have
data %>%
filter(y > y.min)
ggplot(data, aes(x = x, y = y)) + geom_point()
Therefore, if I change x to "variable_3", running the ggplot will display variable_3 on the x-axis instead of variable_1. Also, if I change the y variable, it will filter correctly