getMultiRegion {geomaroc}R Documentation

Plot multiple regions

Description

Helps to plot the shape of multiple regions.

Usage

getMultiRegion(name = NULL, id = NULL)

Arguments

name

vector of the name of the regions to plot. The notation should be respected.To get the notation execute: regions()

id

vector of 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: 
#Plot two regions :Casablanca-Settat and Laayoune-Sakia-El-Hamra
regions=getMultiRegion(c("Eddakhla-Oued-Eddahab","Laayoune-Sakia-El-Hamra"))
plot(regions$coordinates)
#Plot the map of Morocco
mar=getMultiRegion(id=1:12)
plot(mar$coordinates)

## End(Not run)

[Package geomaroc version 0.1.1 Index]