[R] Greek symbols (again but more complicated)

Dieter Menne dieter.menne at menne-biomed.de
Sun Sep 5 17:53:21 CEST 2010



John Helly wrote:
> 
> I'm trying to get 'mu' to show up as a Greek symbol but, despite trying
> every example I could find, can't get it to work. 
> 
> 
Try 

library(ggplot2)
qplot(mpg, wt, data=mtcars, xlab = "",  ylab = bquote(mu~(E ~m^-2~s^-1)),
geom="line") 

(thanks to Baptiste and David in 
<http://r.789695.n4.nabble.com/How-to-plot-an-expression-label-with-variable-text-td2341465.html#a2341504>
)

And please always use reproducible code for posting as above; your code had
the data set missing, which was totally irrelevant anyway, and ggplot2 was
missing.

Dieter




-- 
View this message in context: http://r.789695.n4.nabble.com/Greek-symbols-again-but-more-complicated-tp2527408p2527418.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list