Passing labels to xlab and ylab in ggplot2
问题 I have created a function where the objective is to create a series of plots in a vectorzation way. The functions partially does what I want which is update update the plot based on the selected variables. However, I am not able to pass the label argument (i.e. label_x and label_y) so that the xlab and ylab are updated consistently. library(tidyverse) plot_scatter_with_label <- function(df, var_x, var_y, label_x, label_y, geom_smooth = FALSE, point_shape = 16, point_color = "#EB3300", point