[R] Manipulating text

Uwe Ligges ligges at statistik.uni-dortmund.de
Sat Aug 9 12:28:05 CEST 2003



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))

Uwe Ligges


> Dennis Fisher MD
> P < (The "P Less Than" Company)
> Phone: 1-866-PLessThan (1-866-753-8864)
> Fax: 1-415-564-2220
> www.PLessThan.com
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list