Hi All, I'm trying to write "ug/m3" as y-label, with greek letter "mu" replacing "u" AND "3" going as a power. These commands works in general: plot.new() text(0.5, 0.5, expression(symbol("m"))) But, I'm sure about how to do it using barchart() from "Lattice". Can anyone help please? Thanks, Peng Cai [[alternative HTML version deleted]]
baptiste auguie
2009-Dec-09 17:02 UTC
[R] Greek symbols on "ylab=" using barchart() {Lattice}
Hi, try this, barchart(1:2, ylab=expression(mu*g/m^3)) ?plotmath baptiste 2009/12/9 Peng Cai <pengcaimaillist at gmail.com>:> Hi All, > > I'm trying to write "ug/m3" as y-label, with greek letter "mu" replacing "u" > AND "3" going as a power. > > These commands works in general: > > plot.new() > text(0.5, 0.5, expression(symbol("m"))) > > But, I'm sure about how to do it using barchart() from "Lattice". Can anyone > help please? > > Thanks, > Peng Cai > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >