Learn R Programming

geomaroc (version 0.1.1)

getRegion: Plot regions

Description

plot the shape of each region

Usage

getRegion(name = NULL, id = NULL)

Arguments

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()

Value

return a sf object

Examples

Run this code
# NOT RUN {
region=getRegion("Tanger-Tetouan-Al-Hoceima") #Use region name
#plot(region$coordinates)
region=getRegion(id=1) # use id
plot(region$coordinates)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab