关于r:ggplot2中的上标和下标轴标签

Superscript and subscript axis labels in ggplot2

本问题已经有最佳答案,请猛点这里访问。

我在ggplot2中需要一个轴标签,该标签上应显示"同化(μmolCO2 m-2 s-1)",其中CO2为2下标,-2和-1为上标。
谢谢。


你可以试试

1
2
3
library(ggplot2)
qplot(uptake, data = CO2) +
   xlab(bquote('Assimilation ('*mu~ 'mol' ~CO[2]~ m^-2~s^-1*')'))

enter image description here