[R] superscript in figures - basic question
Chuck Cleland
ccleland at optonline.net
Tue Jun 14 03:51:15 CEST 2005
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 at 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
More information about the R-help
mailing list