How to add mathematical symbols in ggplot facet_wrap text?
问题 This question explains how to add mathematical symbols inside a plot. But this doesn't work when the text is supposed to be stored in the data frame itself. This is the case for the text that appears in little boxes of the facet_wrap sub plots. Here is a reproducible example. Let's say for example that I have this data in T and in m³ and that I would like to draw a plot like this one. library(ggplot2) dtf <- data.frame(year = rep(1961:2010,2), consumption = cumsum(rnorm(100)), item = rep(c(