I want to combine text and math symbols in "main" title of my histogram. I've tried using both bquote()
and expression()
but doesn't seem to work. Below is what I'm trying to do. I want both R^2 and sigma to appear as symbols in my main title if possible.
hist(R2_sig_3, col="lightskyblue", border="royalblue", xlab=expression(R^2),
main=bquote(~R^2 "values \nfor sigma=10"))
Please advise!