Hi All, I'm trying to use expression() for y-label in plot(). I'm not able to write Average(space)PM(subscript)10. I'm trying: ylab=expression(Average PM[10]) and its not working, because of a space between "Average" and "PM". Thanks, Peng [[alternative HTML version deleted]]
Try this: expression(Average~PM[10]) On Fri, Feb 12, 2010 at 3:29 PM, Peng Cai <pengcaimaillist at gmail.com> wrote:> Hi All, > > I'm trying to use expression() for y-label in plot(). I'm not able to write > Average(space)PM(subscript)10. I'm trying: > > ylab=expression(Average PM[10]) > > and its not working, because of a space between "Average" and "PM". Thanks, > Peng > > ? ? ? ?[[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. >-- Henrique Dallazuanna Curitiba-Paran?-Brasil 25? 25' 40" S 49? 16' 22" O
On Fri, 12 Feb 2010, Peng Cai wrote:> Hi All, > > I'm trying to use expression() for y-label in plot(). I'm not able to write > Average(space)PM(subscript)10. I'm trying: > > ylab=expression(Average PM[10]) > > and its not working, because of a space between "Average" and "PM". Thanks,quote("Average PM"[10]) or quote(Average~PM[10]) seem to work. There is an example of the first style in ?plotmath. -thomas Thomas Lumley Assoc. Professor, Biostatistics tlumley at u.washington.edu University of Washington, Seattle