Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我仍在为我的情节的正确标签而苦苦挣扎。我设法让它工作。
df <-data.frame(a=seq(1,20),b=seq(1,20)) ggplot(df, aes(x = a, y = b)) + geom_point() + ylab(expression(paste(CH[4]~" formation rate"~"(",mu, mol, day^{-1},")")))
它缺少的是 mumol 和 day^-1 之间的运算符符号“ * ”。它应该是这样的: 谢谢你的帮助。
我不喜欢使用这种paste风格来表达,而是分别使用~和*分隔带有或不带空格的术语。如果需要 *,请将其放在引号中。
paste
~
*
ggplot(df, aes(x = a, y = b)) + geom_point() + ylab(expression(CH[4]~formation~rate~(mu*mol~'*'~day^{-1})))