getMultiProvince {geomaroc} | R Documentation |
Plot multiple regions
Description
Helps to plot the shape of multiple regions.
Usage
getMultiProvince(n_region = NULL, id = NULL)
Arguments
n_region |
vector of the name of the regions to plot. The notation should be respected.To get the notation execute: regions() |
id |
vector of regions id.Each region has an id. To get the id of each region please execute : regions() |
Value
return a sf object
Examples
## Not run:
# Plot two regions :Casablanca-Settat and Rabat-Sale-Kenitra
regions=getMultiProvince(c("Casablanca-Settat","Rabat-Sale-Kenitra"))
plot(regions$coordinates)
#Plot provinces of Oriental and Tanger-Tetouan-AL-Hoceima
regions=getMultiProvince(id=c(1,2))
plot(regions$coordinates)
## End(Not run)
[Package geomaroc version 0.1.1 Index]