getRegion {geomaroc}R Documentation

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

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


[Package geomaroc version 0.1.1 Index]