[R] mathematics in R graphics

Chong Gu chong at stat.purdue.edu
Wed Jun 23 20:05:15 CEST 1999


   Date: Wed, 23 Jun 1999 10:54:36 -0700 (PDT)
   From: Thomas Lumley <thomas at biostat.washington.edu>
   cc: r-help at 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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list