getDistrict {geomaroc} | R Documentation |
Plot districts within a province
Description
Helps to plot the shape of districts within a province.
Usage
getDistrict(n_province = NULL, id = NULL)
Arguments
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() |
Value
return a sf object
Examples
## Not run:
#Use DISTRICT name
prov=getDistrict("Casablanca")
plot(prov$coordinates)
#Use id
prov=getDistrict(id=141)
plot(prov$coordinates)
## End(Not run)
[Package geomaroc version 0.1.1 Index]