Re: [R] superscript in figures - basic question

From: Chuck Cleland <ccleland_at_optonline.net>
Date: Tue 14 Jun 2005 - 11:51:15 EST

See ?plotmath.

plot(1:10, 1:10, ylab=expression(BA (m^{2}/ha)))

Benjamin M. Osborne wrote:
> Although I see similar, but more complex, questions addressed in the help
> archive, I'm having trouble adding superscripted text to the y-axis labels of
> some figures, and I can't find anything in the R documentation on this.
>
> I have:
>
> ylab="BA (m2/ha)"
>
> but I want the "2" to be superscripted.
> Thanks in advence for the help, or for pointing out the appropriate help file.
>
> -Ben Osborne
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

-- 
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 452-1424 (M, W, F)
fax: (917) 438-0894

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Tue Jun 14 11:54:35 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:33 EST