Re: [R] Superscripts in axis label

2009-08-12 Thread Eik Vettorazzi
pch=16, las=1, cex.lab="1.13") and got error messages, saying 'unexpected string constant' - have I missed something? Sarah From: Eik Vettorazzi [e.vettora...@uke.uni-hamburg.de] Sent: 12 August 2009 16:41 To: Buckmaster, Sarah Cc: r-he

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

[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