Re: [R] ggplot2: How to remove legend component for geom_errorbar() ?

2008-06-16 Thread Carsten Jaeger
sion, you'll be able to do > > GeomLine$guide_geom <- function(.) "blank" > > Or I might come up with a better way of controlling the appearance. > > Regards, > > Hadley > > On Mon, Jun 16, 2008 at 2:55 AM, Carsten Jaeger <[EMAIL PROTECTED]>

[R] ggplot2: How to remove legend component for geom_errorbar() ?

2008-06-16 Thread Carsten Jaeger
Dear list (probably Hadley), I'm trying to do a plot like the following, composed of bars and error bars: df <- data.frame(factor1=gl(2,5), factor2=gl(5,1), y=rnorm(10), err=0.1) ggplot(df, aes(x=factor1, y=y, fill=factor2)) + geom_bar(position="dodge", stat="identity") + geom_errorbar(