Re: [R] mathematics in R graphics

Chong Gu (chong@stat.purdue.edu)
Wed, 23 Jun 1999 13:05:15 -0500

Date: Wed, 23 Jun 1999 13:05:15 -0500
Message-Id: <199906231805.NAA24374@mean.stat.purdue.edu>
From: Chong Gu <chong@stat.purdue.edu>
To: thomas@biostat.washington.edu
Subject: Re: [R] mathematics in R graphics

Date: Wed, 23 Jun 1999 10:54:36 -0700 (PDT)
From: Thomas Lumley <thomas@biostat.washington.edu>
cc: r-help@stat.math.ethz.ch
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

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

Thanks.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


This archive was generated by hypermail 1.02.