hadley/ggplot2 — Issue #385: No padding between legend contents and bounding rectangle
Author: wch
Created: 2012-02-05 18:12:49+00:00
State: open

This was reported on the mailing list. In 0.9.0, there is no padding between the legend contents and the bounding rectangle. If the rectangle is visible, then each key item overlaps the rectangle and obscures the line. In 0.8.9, there was padding.

```
dat <- data.frame(x=LETTERS[1:3], y=1)

p <- ggplot(dat, aes(x=x, y=y, fill=x)) + geom_bar() +
opts(legend.background = theme_rect())
```