[R] print formula on plot

Thomas Steiner finbref.2006 at gmail.com
Wed Feb 8 15:44:11 CET 2006


> > text(-0.9,5,paste(zs[1],' ',expression(x^3)))  # should work

this produces a 2x^3 and not 2x"superscript"(3) - just execute it and
you see what I mean. anyway, substitute helps and bquote could shorten
it a bit.
Anywa thanks!
Thomas




More information about the R-help mailing list