We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e70fb93 commit 1197815Copy full SHA for 1197815
R/geom-polygon.r
@@ -60,6 +60,8 @@ GeomPolygon <- proto(Geom, {
60
if (n == 1) return()
61
62
munched <- coord_munch(coordinates, data, scales)
63
+ # Sort by group to make sure that colors, fill, etc. come in same order
64
+ munched <- munched[order(munched$group), ]
65
66
# For gpar(), there is one entry per polygon (not one entry per point).
67
# We'll pull the first value from each group, and assume all these values
0 commit comments