[R] ggplot2: expression() in legend labels?

Casper Ti. Vector caspervector at gmail.com
Sat Sep 24 10:49:03 CEST 2011


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110924/4a22148a/attachment.bin>


More information about the R-help mailing list