Here is a sample dataframe:
df <- tibble(variable =c("gdp", "gdp_ppp"),
value = c(1000, 2000),
variable_label=c("GDP", "GDP_PPP"))
I would like to make variable_label an expression or text element of some sort because I want to use it as a title for a series of plots that I have generated using a loop. I could manually type the title using text elements but that would require me to generate each plot independently, as far as I know. For example, I want the "PPP" in "GDP_PPP" to be a subscript when it shows up in the title. Is this possible? Thanks!