Currently a polygon with a hole is plotted like this when using the gg method
The disc is a hole but the plot treats it as it does the other polygons, it pays no attention to the hole logical variable that is included in the data.frame outputted by fortify.
Replacing geom_polygon with ggpolypath::geom_polypath in the gg.SpatialPolygons function produces a plot like this:
Seems like a simple enhancement so long as you are happy to take on the ggpolypath dependency. I briefly looked for solutions using geom_polygon but this seems like someone has already solved the problem.
Currently a polygon with a hole is plotted like this when using the
gg
methodThe disc is a hole but the plot treats it as it does the other polygons, it pays no attention to the hole logical variable that is included in the data.frame outputted by
fortify
.Replacing
geom_polygon
withggpolypath::geom_polypath
in thegg.SpatialPolygons
function produces a plot like this:Seems like a simple enhancement so long as you are happy to take on the
ggpolypath
dependency. I briefly looked for solutions usinggeom_polygon
but this seems like someone has already solved the problem.