[R] Superscripts in axis label

2009-08-12 Thread Buckmaster, Sarah
Hi All, I am trying to lable the y-axis on my scatterplot with the following: Soil moisture content (m3m-3) I am using the following coding for plotting the graph: plot(soilmoisture~gradientlevel, xlab=Levels of droughting gradient, ylab=Soil moisture content (m3m-3), bty=l, font.main=2,

Re: [R] Superscripts in axis label

2009-08-12 Thread Eik Vettorazzi
Hi Sarah, expression works well, but you have to use it as function. plot(1,ylab=expression(Soil moisture content ~~bgroup((,m^3*m^{-3}, see ?plotmath for further examples hth. Buckmaster, Sarah schrieb: Hi All, I am trying to lable the y-axis on my scatterplot with the following:

Re: [R] Superscripts in axis label

2009-08-12 Thread Eik Vettorazzi
From: Eik Vettorazzi [e.vettora...@uke.uni-hamburg.de] Sent: 12 August 2009 16:41 To: Buckmaster, Sarah Cc: r-help@r-project.org Subject: Re: [R] Superscripts in axis label Hi Sarah, expression works well, but you have to use it as function. plot(1,ylab