Re: [R] diagonal lines in legends of ggplot2

2008-12-19 Thread hadley wickham
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 c

[R] diagonal lines in legends of ggplot2

2008-12-19 Thread Erich Studerus
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,10