ggpolypath
ggpolypath copied to clipboard
Polygons with holes for ggplot2
https://github.com/tidyverse/ggplot2/pull/3128 Update the hole story too, will be a nice link to mesh_plot speed
Here's an example ([from stackoverflow](https://stackoverflow.com/questions/44209859/map-with-ggplot2-create-mask-filling-a-box-excluding-a-single-country/44211124)): ``` library(mapdata) library(ggmap) library(ggplot2) library(raster) library(ggpolypath) Peru
Ok, for real this time. In `ggspatial` it is common to map `alpha` and `col` in addition to `fill`. Passing `fill=NA` results in zero polygons being drawn, and mapping `col`...
``` R ggplot(holey) + aes(x = x_, y = y_, group = branch_, fill = branch_) + geom_polypath() ``` That results in the windows being filled, as per fill =...