[R] ggplot2: expression() in legend labels?
Hadley Wickham
hadley at rice.edu
Tue Oct 4 17:10:56 CEST 2011
You need to set the labels...
Hadley
On Sat, Sep 24, 2011 at 3:49 AM, Casper Ti. Vector
<caspervector at gmail.com> wrote:
> Is there any way to use expression() in legend labels with ggplot2?
>
> It seems that things like
>> scale_shape_manual(value = c(
>> x = expression(italic(x)),
>> y = expression(italic(y))
>> ))
> don't work.
>
> Thanks very much :)
>
> --
> Using GPG/PGP? Please get my current public key (ID: 0xAEF6A134,
> valid from 2010 to 2013) from a key server.
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
More information about the R-help
mailing list