【问题标题】:Superscript and subscript axis labels in ggplot2 [duplicate]ggplot2中的上标和下标轴标签[重复]
【发布时间】:2015-02-11 06:30:13
【问题描述】:

我需要 ggplot2 中的轴标签,它读取“同化(μmol CO2 m-2 s-1)”,其中 CO2 的 2 作为下标,-2 和 -1 作为上标。 谢谢。

【问题讨论】:

  • 阅读help("plotmath")

标签: r ggplot2 axis-labels


【解决方案1】:

你可以试试

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

【讨论】:

    猜你喜欢
    • 2021-08-11
    • 2021-07-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-25
    • 1970-01-01
    • 2017-06-01
    • 2022-11-25
    相关资源
    最近更新 更多