[R] ggplot2's geom_errorbar legend
hadley wickham
h.wickham at gmail.com
Wed May 5 22:01:44 CEST 2010
Hi Giovanni,
The basic idea is:
classiclimits <- aes(x=x[1:100],ymax = classiccis[1:100,e,p,
ymin=classiccis[1:100,e,p,2], colour = "classic")
ownlimits <- aes(x=x[1:100]+0.4,ymax = owncis[1:100,e,p,1],
ymin=owncis[1:100,e,p,2], colour = "own")
rbootlimits <- aes(x=x[1:100]+0.8,ymax = rbootcis[1:100,e,p,1],
ymin=rbootcis[1:100,e,p,2], colour = "rboot")
And then remove the explicit colours elsewhere in your code.
Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
More information about the R-help
mailing list