On Wed, 23 Jun 1999, Chong Gu wrote:
>
> I was reading Chapter 2 of the R manual that came with 64.1, but
> couldn't get the behavior out of expressions as described in the
> manual. Is there any example on the subject? For example, "x sub
i"
> is supposed to be produced by "x[i]", but where to put it? I
tried
> mtext(text=x[i]) and R simply interprets that as a regular expression.
You need
mtext(text=expression(x[i]))
Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._