getProvince | R Documentation |
Helps to plot the shape of provinces within a region.
getProvince(n_region = NULL, id = NULL)
n_region |
The name of the region to plot. The notation should be respected.To get the notation : regions() |
id |
Each region has an id. To get the id of each region : regions() |
return a sf object
## Not run: #Use region name region=getProvince("Tanger-Tetouan-Al-Hoceima") plot(region$coordinates) #Use id region=getProvince(id=1) #Don't forget getRegion(id=1) not getRegion(1) plot(region$coordinates) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.