powered by
Remove the polygons of one or more regions from a map.
gadm_remove(x, level=NULL, regions=NULL) gadm.remove(x, level=NULL, regions=NULL) # deprecated
gadm.remove(x, level=NULL, regions=NULL) # deprecated
Object gadm_sf or gadm_sp
Integer - level from which shapes are removed. If NULL, curent level is used.
String - vector of regions to be removed
Object - As input object, gadm_sf or gadm_sp.
listNames
# NOT RUN { library(GADMTools) data("Corsica") HCorse <- gadm_remove(Corsica, level=2, "Corse-du-Sud") plotmap(HCorse) # }
Run the code above in your browser using DataLab