[R] ylab with an exponent

Henrique Dallazuanna wwwhsd at gmail.com
Fri Aug 15 21:05:54 CEST 2008


Try this:

plot(1,2, ylab=expression(insects~m^2))

On Fri, Aug 15, 2008 at 1:26 PM, stephen sefick <ssefick at gmail.com> wrote:
> plot(1,2, ylab= paste("insects", expression(m^2), sep=" "))
>
> I get insects m^2
> I would like m to the 2
>
> what is the problem?
>
> --
> 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
>
> ______________________________________________
> 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.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



More information about the R-help mailing list