Re: [R] print formula on plot

From: Thomas Steiner <finbref.2006_at_gmail.com>
Date: Thu 09 Feb 2006 - 01:44:11 EST

> > 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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Feb 09 02:16:06 2006

This archive was generated by hypermail 2.1.8 : Fri 10 Feb 2006 - 21:35:19 EST