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.
我在 R 中有一个情节,我的一个轴被标记为z^2
z^2
plot(log(b)~a, data=dat, pch=15, xlab="time", ylab="log(z^2)")
是否可以在没有符号 "^" 的情况下用 R 写幂?
是的,见?plotmath。
?plotmath
plot(log(b)~a, data=dat, pch=15, xlab="time", ylab=expression(log(z^2)))
尝试使用ylab=expression(log(z^2))
ylab=expression(log(z^2))