Skip to content

Commit 8c87810

Browse files
committed
Use draw_key_polygon with geom_tile.
Fixes #1484
1 parent 28f8ae4 commit 8c87810

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# ggplot2 2.0.0.9000
22

3+
* `geom_tile()` uses `draw_key_polygon()` for better legend keys, including
4+
coloured outline (#1484).
5+
36
* The position of `...` in `geom_density2d()` has been adjusted so you can
47
set the `n` parameter (#1485).
58

R/geom-tile.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,5 @@ GeomTile <- ggproto("GeomTile", GeomRect,
9696

9797
required_aes = c("x", "y"),
9898

99-
draw_key = draw_key_rect
99+
draw_key = draw_key_polygon
100100
)

0 commit comments

Comments
 (0)