?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 <amarsh at udel.edu>
wrote:> 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 G. Marsh, Ph.D.
> Associate Professor
> Marine Biological Sciences
> University of Delaware
> Lewes, DE 19958
> 302.645.4367
> ------------------------------------------------
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Stephen Sefick
Research Scientist
Southeastern Natural Sciences Academy
Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods. We are mammals, and have not exhausted the
annoying little problems of being mammals.
-K. Mullis