[R] Greek letters in legend without a space

Gabor Grothendieck ggrothendieck at gmail.com
Fri Feb 8 01:13:57 CET 2008


On Feb 7, 2008 5:07 PM, Peter Dalgaard <p.dalgaard at biostat.ku.dk> wrote:
> ming kung wrote:
> > I am trying to make a figure legend that says "uM" (but replace "u" with
> > mu).
> >
> > When I use the following script, my legend looks more like "u M", rather
> > than "uM".
> >
> >
> >> legend(1,1, c(expression(1~mu~M)))
> >>
> >
> > How do I get rid of the space R places in when using the expression command
> > to insert a greek letter?
> >
> legend(1,1, expression(1~mu*M))
>
> (I'm surprised that c() in there didn't screw things up...)

Or even just:

legend(1, 1, 1 ~ mu*M)



More information about the R-help mailing list