I need an axis label in ggplot2 which reads "Assimilation (μmol CO2 m-2 s-1)" with the 2 of CO2 as subscript and the -2 and -1 as superscript. Thanks.
Asked
Active
Viewed 8.3k times
44
-
3Read `help("plotmath")`. – Roland Dec 12 '14 at 14:13
1 Answers
103
You could try
library(ggplot2)
qplot(uptake, data = CO2) +
xlab(bquote('Assimilation ('*mu~ 'mol' ~CO[2]~ m^-2~s^-1*')'))
akrun
- 674,427
- 24
- 381
- 486