[英]Plotmath expression with mathematical operators in ggplot2
我不希望对表达式使用paste
样式,而应使用~
和*
分别分隔带空格或不带空格的术语。 如果要*,请用引号引起来。
ggplot(df, aes(x = a, y = b)) +
geom_point() +
ylab(expression(CH[4]~formation~rate~(mu*mol~'*'~day^{-1})))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.