getRegion: Plot regions

View source: R/region.R

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


geomaroc documentation built on May 13, 2022, 5:08 p.m.