[R] Expression for pedices

Duncan Murdoch murdoch at stats.uwo.ca
Sun Apr 15 20:21:55 CEST 2007


On 4/15/2007 2:05 PM, Cressoni, Massimo (NIH/NHLBI) [F] wrote:
> I know that this maybe a trivial question. I am not able to plot pedices in graph axes.
> Instead I am able to plot different math symbols :

I think you mean subscripts.

> 
> XLABEL <- expression(paste(cmH,lim(f(x), x %->% 0),"O PEEP"))
> works well
> 
> XLABEL <- expression(paste(cmH,[2],"O PEEP"))
> is considered a wrong expression.

Yes, you don't want the comma before the bracket:

XLABEL <- expression(paste(cmH[2],"O PEEP"))

Duncan Murdoch



More information about the R-help mailing list