Skip to content
Prev 1795 / 398506 Next

math symbols in plot text: 2nd try

On Thu, 7 Jan 1999 royle at penguin.irm.r9.fws.gov wrote:

            
Try square brackets:

text(5,2,expression(P[2])

  (Some of the examples under help(text) do give examples of subscripts,
although you might not be able to tell unless you tried them and looked at
the results.)

  Interestingly, under 0.62.3 on SunOS 4 I can get R to core dump with a
bus error by trying to feed it 

    text(5,2,expression(P_{2}))



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._