getMultiProvince | R Documentation |
Helps to plot the shape of multiple regions.
getMultiProvince(n_region = NULL, id = NULL)
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() |
return a sf object
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.