[R] ggplot2: How to remove legend component for geom_errorbar() ?
hadley wickham
h.wickham at gmail.com
Mon Jun 16 18:45:35 CEST 2008
> thanks for your tip! It worked fine (though I had to use "tile" instead
> of "point"). I see your point to handle legends the way you do, which is
> a very convenient feature of ggplot. It's great for points, lines, bars
> etc., but in the particular case of error bars, I think it would be
> reasonable to omit them by default and only turn them on if someone
> really wants them (by using something like "legend=TRUE"). Just my two
> cents, for now, I'm happy with your workaround.
Maybe this wouldn't have been such a problem if the legend for error
bars actually looked like errorbars! I'll add that to my to do and
think about better ways to turn legends off when desired.
Hadley
--
http://had.co.nz/
More information about the R-help
mailing list