【发布时间】:2013-03-17 19:27:16
【问题描述】:
我想在我的bquote 环境中添加一个新行,我该怎么做?
我的代码:
test<-c(1,2,3,4,4.5,3.5,5.6)
test2<-0.033111111
plot(test,c(1:length(test)))
segments(4,0,4,23,col="red",lwd=2)
text(5, 4.5, labels = bquote(Qua[0.99] == .(round(test2,4))),col="red", cex = 1.4)
我想在等号后换行,所以应该给出:
VaR_0.99 =
0.03311
and not
VaR_0.99 = 0.03311
我用线条试了一下,还是不行:
test<-c(1,2,3,4,4.5,3.5,5.6)
test2<-0.033111111
lines<-list(bquote(Qua[0.99] == ),bquote(.(round(test2,4))))
plot(test,c(1:length(test)))
segments(4,0,4,23,col="red",lwd=2)
text(5, 4.5, labels =lines ,col="red", cex = 1.4)
【问题讨论】:
标签: r data-visualization plotmath