D*********2 发帖数: 535 | 1 这问题困扰我老许久了。
plot里面
比如我的main=
paste(expression(sigma),"= 2")
结果expression那句等于白写
如果不加“=2”,main=expression(sigma),还是work的。
到底应该怎么粘起来呢?
谢谢谢谢。 | s*****n 发帖数: 2174 | 2 plot(..., main = ~ sigma ~ "= 2")
或者 plot(..., main = expression(sigma == 2)) | D*********2 发帖数: 535 | | D*********2 发帖数: 535 | 4 follow up question,
for example
plot(1:7, rnorm(7), main = "axis() examples",
type = "s", xaxt = "n", frame = FALSE, col = "red")
axis(1, 1:7, c(LETTERS[1:6], expression(alpha)), col.axis = "blue")
WORKS.
what if I need the last one \alpha to be T {\alpha} like?
paste("T", expression(alpha), sep="")
does NOT work in this case, will return Talpha.
Thanks a million na a million. | h*********1 发帖数: 37 | 5 Wrong order
try
main=expression(paste(sigma,"=2"))
【在 D*********2 的大作中提到】 : 这问题困扰我老许久了。 : plot里面 : 比如我的main= : paste(expression(sigma),"= 2") : 结果expression那句等于白写 : 如果不加“=2”,main=expression(sigma),还是work的。 : 到底应该怎么粘起来呢? : 谢谢谢谢。
| D*********2 发帖数: 535 | 6 Thanks Thanks Thanks!
solved the last problem also.
【在 h*********1 的大作中提到】 : Wrong order : try : main=expression(paste(sigma,"=2"))
|
|