[R] Manipulating text

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Sat Aug 9 12:57:35 CEST 2003


Uwe Ligges <ligges at statistik.uni-dortmund.de> writes:

> Dennis Fisher wrote:
> > 
> > In labeling axes, I want to combine symbols and text/superscripts.
> > Examples include:
> > 
> > m2 (m, followed by a superscripted 2)
                         *****

> > µg (micrograms)
> > 
> > How can I accomplish this in R?
> 
> See ?plotmath, e.g.:
> 
> plot(1:10, xlab=expression(m[2]), ylab=expression(mu*g))

Heatwave in Dortmund too, Uwe?  ;-)

 plot(1:10, xlab=expression(m^2), ylab=expression(mu*g))

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list