正如标题所示。尝试使用unicode(因为括号没有注册,只是显示为括号)来创建下标2. mu工作正常。下标2显示为无法识别的字符框。这是代码和我正在谈论的图像。我对任何事都持开放态度!
scale_y_continuous(expand = c(0, 0), breaks = c(0,4,8,12,16,20),
limits = c(0,20), sec.axis=sec_axis(~.*50,
breaks = c(100,200,300,400,500,600,700,800,900,1000),
name = "Hydrogen Sulfide Concentration (\U00B5M H\U2082S)"))
答案 0 :(得分:0)
您可以使用expression
和paste
:
name = expression(paste("Hydrogen Sulfide Concentration (", mu, "M H" ["2"], "S)"))