Re: [R] Greek symbols on ylab= using barchart() {Lattice}

2009-12-11 Thread Gavin Simpson
On Wed, 2009-12-09 at 18:46 +0100, baptiste auguie wrote: barchart(1:2, ylab=expression(Concentration (*mu*g/m^3*))) or barchart(1:2, ylab=expression(Concentration ~ (mu*g/m^3))) That way you don't have to worry about quoting parts of the expression. G 2009/12/9 Peng Cai

[R] Greek symbols on ylab= using barchart() {Lattice}

2009-12-09 Thread Peng Cai
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

Re: [R] Greek symbols on ylab= using barchart() {Lattice}

2009-12-09 Thread baptiste auguie
Hi, try this, barchart(1:2, ylab=expression(mu*g/m^3)) ?plotmath baptiste 2009/12/9 Peng Cai pengcaimaill...@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,

Re: [R] Greek symbols on ylab= using barchart() {Lattice}

2009-12-09 Thread Peng Cai
Hi Baptiste and Others, Thanks for your help. I'm writing: ylab=expression(Concentration(mu*g/m^3)) And its working fine, but is it possible to add a space between Concentration and (mu*g/m^3). Thanks again, Peng Cai On Wed, Dec 9, 2009 at 12:02 PM, baptiste auguie

Re: [R] Greek symbols on ylab= using barchart() {Lattice}

2009-12-09 Thread baptiste auguie
barchart(1:2, ylab=expression(Concentration (*mu*g/m^3*))) 2009/12/9 Peng Cai pengcaimaill...@gmail.com: Hi Baptiste and Others, Thanks for your help. I'm writing: ylab=expression(Concentration(mu*g/m^3)) And its working fine, but is it possible to add a space between Concentration and

Re: [R] Greek symbols on ylab= using barchart() {Lattice}

2009-12-09 Thread Peng Cai
Thanks, it worked! On Wed, Dec 9, 2009 at 12:46 PM, baptiste auguie baptiste.aug...@googlemail.com wrote: barchart(1:2, ylab=expression(Concentration (*mu*g/m^3*))) 2009/12/9 Peng Cai pengcaimaill...@gmail.com: Hi Baptiste and Others, Thanks for your help. I'm writing: