Message-ID: <CCA2F487-B31D-448E-B4EA-1D46237719FB@comcast.net>
Date: 2011-06-28T18:33:02Z
From: David Winsemius
Subject: Axes labels, greek letters and spaces
In-Reply-To: <BANLkTimitwwRSS9dZgJ6VDb1UWeikQwQAg@mail.gmail.com>
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