This geometry correctly plots polygons with holes in ggplot2 at the
expense of doing so (slightly) more slowly than geom_polygon. This
implementation fixes a bug in the ggpolypath package, which provides
similar functionality.
Usage
geom_polypath(mapping = NULL, data = NULL, stat = "identity",
position = "identity", na.rm = FALSE, show.legend = NA,
inherit.aes = TRUE, rule = "winding", ...)
Arguments
mapping
An aesthetic mapping, created with aes. The aesthetic
will mostly likely need to contain a group mapping.
data
A data.frame containing the coordinates to plot.
stat
A statistic to apply (most likely "identity")
position
A position to apply (most likely "identity")
na.rm
Should missing coordinate be removed?
show.legend
Should a legend be shown for mapped aesthetics?
inherit.aes
Should aesthetics be inherited?
rule
A fill rule to apply. One of "winding" or "evenodd".