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", pch=16, las=1, cex.lab="1.13") I have tried to incorporate 'expression' into this coding for the ylab as follows (with also a few variations): plot(soilmoisture~gradientlevel, xlab="Levels of droughting gradient", ylab=expression"Soil moisture content (m^3m^-3)", bty="l", font.main="2", pch=16, las=1, cex.lab="1.13") ...but this isn't working and the second m never seems to come up wth superscript 3 after it. I'm guessing I have tried to incorporate 'expression' too simply! Would someone please advise me as to the coding for this? Many thanks Sarah [[alternative HTML version deleted]] ______________________________________________ R-help@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.