powered by
crop a region to a specific rectangle
gadm_crop(x, xmin, ymin, xmax, ymax)
gadm_sp or gadm_sf Object containing regions.
numeric Longitude min
numeric Latitude min
numeric Longitude max
numeric Latitude max
Object gadm_sf or gadm_sp
# NOT RUN { library(GADMTools) data("Corsica") area <- gadm_crop(Corsica, xmin=9.3, ymin=42.96, xmax=9.566, ymax=43.02819) plotmap(area) # }
Run the code above in your browser using DataLab