Re: [R] Superscript text in axis labels

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

On 6/5/05, Jim BRINDLE <> 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) mailing list PLEASE do read the posting guide! 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