Learn R Programming

geomaroc (version 0.1.1)

getDistrict: 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

Run this code
# NOT RUN {
#Use DISTRICT name
prov=getDistrict("Casablanca")
plot(prov$coordinates)
#Use id
prov=getDistrict(id=141)
plot(prov$coordinates)
# }

Run the code above in your browser using DataLab