Re: [R] ggplot2: sub/super-script axes labels

2008-10-15 Thread stephen sefick
?mathplot but this should work: qplot(1:10,1:10)+scale_y_continuous(expression("Respiration, pmol "*O[2]*h^-1)) On Wed, Oct 15, 2008 at 7:45 AM, Adam Marsh <[EMAIL PROTECTED]> wrote: > How are sub/superscripts designated for text in axis labels? As in > this y-axis label: > >scale_y_con

[R] ggplot2: sub/super-script axes labels

2008-10-15 Thread Adam Marsh
How are sub/superscripts designated for text in axis labels? As in this y-axis label: scale_y_continuous("Respiration, pmol O2 h-1") where the "2" needs to be subscripted and the "-1" needs to be superscripted. Thanks. Adam --- Adam