getDistrict | R Documentation |
Helps to plot the shape of districts within a province.
getDistrict(n_province = NULL, id = NULL)
n_province |
The name of the province to plot. The notation should be respected.To get the notation: provinces() |
id |
the id of the province.To get the id of each province provinces() |
return a sf object
## Not run: #Use DISTRICT name prov=getDistrict("Casablanca") plot(prov$coordinates) #Use id prov=getDistrict(id=141) plot(prov$coordinates) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.