[R] Axes labels, greek letters and spaces

David Winsemius dwinsemius at comcast.net
Tue Jun 28 20:33:02 CEST 2011


The * operator can be used for a non-space separation.

expression(Chlorophyll*italic(a)~mu*g~cm^-2)

--  
David.

On Jun 28, 2011, at 2:21 PM, Sam Albers wrote:

> Hello all,
>
> I can't seem to figure how to use a greek character in expression() in
> plot() labels without adding a space. So for example below when  
> plotting
> this out
>
> x<-1:10
> plot(x,x^2, xlab=expression(Chlorophyll~italic(a)~mu~g~cm^-2))
>
> the axis label read as  μ g cm^-2 because I have space there with a  
> tilda.
>
> But if I remove the tilda then my units are mug cm^-2.
>
> Can anyone recommend a way that I can modify the axis label to look  
> for like
> this: μg cm^-2
>
> Thanks in advance!
>
> Sam.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list