Use dataframe variable names in plot titles
问题 I have a dataframe with several variables that I wish to label and then use in several ggplots. I have applied labels using the labeller package with the following code. library(tidyverse) library(labeller) library(ggpubr) example.df <- data.frame( origin = sample(c("hum_1", "mou_1"), 100, replace = TRUE), v1 = rnorm(100, 100, 5), v2 = rnorm(100, 10,5), v3 = rnorm (100, 25, 5)) example.df <- example.df %>% set_variable_labels(origin = "original sample", v1 = "effect of Rx", v2 = "response",