jlh.membership
2014-Feb-25 18:45 UTC
[R] ggplot: choropleth map with polygons that have holes
I am encountering a problem using *geom_polygon(., fill=.)* with a dataframe created using fortify(map) *if the polygon has holes*. It appears that fill=. ignores the holes - -eg. fills them as if they are not present. geom_path(.) on the other hand does recognize the boundaries of the holes. I've been assuming that there's something wrong with my code, but asked this question on SO here: (http://www.stackoverflow.com/questions/21748852/) and received no responses, so I am wondering now if it is a bug in ggplot?? I have also encountered the problem here: (http://stackoverflow.com/questions/21962452/plot-spatial-area-defined-by-multiple-polygons#21963215). The links above provide a full description of the problem, with images, as well as code examples and links to all the datasets used. Any help would be appreciated, as this is a really major problem for me in using ggplot for GIS. [[alternative HTML version deleted]]