[R] math symbols in plot text: 2nd try

Ben Bolker ben at eno.Princeton.EDU
Thu Jan 7 20:30:15 CET 1999

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

> I'm trying to use subscripts on plot text.
> The help files say this can be done and give several example.
> I'm trying to do: P_{2} (for example) and so I tried:
> text(5,2,expression(P_{2}))

  Try square brackets:


  (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 


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

More information about the R-help mailing list