Re: [R] expression help

2011-03-01 Thread Dennis Murphy
Hi: 1. expression() in plotmath ignores control characters such as \n. 2. The workaround, discussed a couple of times on this list (hence in the archives), is to use the atop function, so try something like plot(0:1,0:1,xaxt="n") axis(side=1,at=.3,expression(paste("IFN-", gamma, "\n", "TNF-", alp

[R] expression help

2011-03-01 Thread Daryl Morris
Hello, I am trying to write math-type on a plot. Due to space limitations on the plot, I want 2 short expressions written on top of each other. It is certainly possible to write them in two separate calls, but that involves fine-tuning locations and a lot of trial and error (and I'm trying

Re: [R] expression() help

2010-02-12 Thread Thomas Lumley
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"[

Re: [R] expression() help

2010-02-12 Thread Henrique Dallazuanna
Try this: expression(Average~PM[10]) On Fri, Feb 12, 2010 at 3:29 PM, 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 s

[R] expression() help

2010-02-12 Thread Peng Cai
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]] _