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