How can I make the square root symbol to appear ceiling an axis label in R?
Use expression(sqrt(x))
, see the help file (by doing ?plotmath
as mentioned in mnel's comment) for mathematical annotations in R plots.
plot(1:10,
main='Example',
ylab=expression(sqrt(x)))
which produces
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With