I want to have a new line in my bquote
envrionment, how can I do this?
my code:
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)
And I want to have a new line after the equal sign, so this should give:
VaR_0.99 =
0.03311
and not
VaR_0.99 = 0.03311
I tried it with lines, but it did not work:
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)
For instance, using atop
:
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(atop(Qua[0.99] == phantom(), .(round(test2,4)))),
col="red", cex = 1.4)