我找不到一种在标题中写下标或在R中写副标题的方法,我怎么能写1,2作为下标的v 1,2呢?
谢谢你的帮忙!
发布于 2012-04-15 03:05:45
expression
是你的朋友:
plot(1,1, main=expression('title'^2)) #superscript
plot(1,1, main=expression('title'[2])) #subscript
发布于 2014-05-21 17:15:11
如果您希望在一个文本中包含多个下标,则使用星号(*)分隔各个部分:
plot(1:10, xlab=expression('hi'[5]*'there'[6]^8*'you'[2]))
发布于 2012-04-15 03:07:07
看到了吗?表达式
plot(1:10,main=expression("This is a subscript "[2]))
https://stackoverflow.com/questions/10156417
复制相似问题