Hi Erich, Can you explain why you don't want them? The philosophy behind the legend code is to attempt to match the appearance of the geoms in the plot as closely as possible. There are a few exceptions, like this diagonal line, where the legends are slightly different to make it easier to see certain features of the geom (in this case edge colour and size)
Regards, Hadley On Fri, Dec 19, 2008 at 8:42 AM, Erich Studerus <erich.stude...@bli.uzh.ch> wrote: > > > Hi, I have the following problem with ggplot2: When I specify black contours > for bars in a barplot, ggplot automatically shows diagonal lines in the > legend boxes. Is there a way, to remove these diagonal lines? > > > > Here's a simple example: > > library(ggplot2) > > df<-data.frame(x=gl(6,1),y=rnorm(6,100,50)) > > ggplot(df,aes(y=y,x=x,fill=x))+geom_bar(aes(group=x),colour='black',size=1)+ > scale_fill_brewer(palette='Greys') > > > > > > Thanks for your help! > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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. > -- http://had.co.nz/ ______________________________________________ R-help@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.