Re: [R] Superscript text in axis labels

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Mon 06 Jun 2005 - 07:32:21 EST

On 6/5/05, Jim BRINDLE <j_brindle@hotmail.com> wrote:
> Hello,
>
> I am guessing this is not a difficult question. But at the same time, I
> haven't had much luck figuring this issue out from the R documentation and
> help pages.
>
> How can I create superscript text in the labels of a plot? The parameter
> along my y-axis is volume and my desire is for the y-axis label to read
> "Volume (cm^3)" except with the "3" in the superscript form/position.

plot(1:10, ylab = quote(Volume ~ (cm^3)))

See ?plotmath and try
demo(plotmath)



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 Mon Jun 06 07:41:24 2005

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