Skip to content

How can I write the square root symbol in an axes label?

6 messages · William Dunlap, 21rosit, David Winsemius

#
plot(1:10, ylab=bquote(sqrt(abs("Standardized Residuals"))))

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com
#
And how can I write the units of my axis but outside the square root symbol
I have

plot(1:10, ylab=bquote(Log(sqrt("Total area (mm)")))) 

but I need it as in the attached picture
<http://r.789695.n4.nabble.com/file/n4645602/square_root_mm1.jpg> 



--
View this message in context: http://r.789695.n4.nabble.com/How-can-I-write-the-square-root-symbol-in-an-axes-label-tp4645497p4645602.html
Sent from the R help mailing list archive at Nabble.com.
#
On Oct 9, 2012, at 11:13 AM, 21rosit wrote:

            
plot(1:10, ylab=bquote(Log(sqrt("Total area")~"(mm)")))

The tilde generates a space, while no space would occur if you substituted "*" for the "~".
#
Look at help("plotmath").
For your next question:
Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com