[R] Superscript text in axis labels
Gabor Grothendieck
ggrothendieck at gmail.com
Sun Jun 5 23:32:21 CEST 2005
On 6/5/05, Jim BRINDLE <j_brindle at 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)
More information about the R-help
mailing list