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
solution plot(1,2, ylab= expression("insects"*" "*m^2)) On Fri, Aug 15, 2008 at 12: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 >-- 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
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
>> what is the problem?A solution is: plot(1,2, ylab=expression(paste("insects ", m^2))) The problem is very much more difficult to determine. stephen sefick 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. > >-- View this message in context: http://www.nabble.com/ylab-with-an-exponent-tp19003927p19004197.html Sent from the R help mailing list archive at Nabble.com.