Skip to content

Commit b59216e

Browse files
committed
geom_polygon needs custom NA handling.
Fixes #1411
1 parent b4ca516 commit b59216e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

R/geom-polygon.r

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ GeomPolygon <- ggproto("GeomPolygon", Geom,
9999
default_aes = aes(colour = "NA", fill = "grey20", size = 0.5, linetype = 1,
100100
alpha = NA),
101101

102+
handle_na = function(data, params) {
103+
data
104+
},
105+
102106
required_aes = c("x", "y"),
103107

104108
draw_key = draw_key_polygon

0 commit comments

Comments
 (0)