[R] How to plot an expression-label with variable text

Dieter Menne dieter.menne at menne-biomed.de
Fri Aug 27 20:19:11 CEST 2010


Disclaimer: I have read plotmath, but maybe it's too late today:

How do I get the two labels to be the same:

plot.new()
lab =expression(paste("Estimated ", t[50]," from tgv"))
text(0.5,0.5,lab)
# Should look the same as above. I could not get the substitute right:
what = "tgv"
lab =expression(paste("Estimated ", t[50]," from ",what))
text(0.5,0.2,lab)


Dieter



More information about the R-help mailing list