【问题标题】:How to put a superscript right after a subscript that is not for the subscript如何在不用于下标的下标之后放置上标
【发布时间】:2019-10-02 09:32:51
【问题描述】:

我正在尝试制作一个在下标之后有上标的标签,但我不希望将上标作为下标的一部分。

我已经尝试过,要么将上标作为下标的一部分,要么就在下标后面的字母之后的下标上方。

这是我为 x 轴设置的,但我希望 -1 作为下标 "seawater" 之后的常规上标,而不是在它上面。

labs(, x= expression("Incurrent matter "~(mu~mol*" L"[seawater]^{-1}))))

【问题讨论】:

    标签: r ggplot2 plot subscript superscript


    【解决方案1】:
    library(ggplot2)
    ggplot(mtcars, aes(cyl, gear)) +
        geom_point() +
        labs(x = expression("Incurrent matter"~(mu~mol*"L"[seawater]*""^{-1})))
    

    【讨论】:

      猜你喜欢
      • 2017-05-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多