Learn R Programming

mapSpain (version 0.1.2)

esp_get_country: Get boundaries of Spain

Description

Loads a single sf object containing the boundaries of Spain.

Usage

esp_get_country(...)

Arguments

...

Additional parameters from esp_get_nuts.

Value

A MULTIPOLYGON/MULTIPOINT object.

See Also

esp_get_nuts, esp_get_ccaa, esp_get_prov, esp_get_munic, esp_codelist

Examples

Run this code
# NOT RUN {
library(sf)

OriginalCan <- esp_get_country(moveCAN = FALSE)

plot(OriginalCan$geometry, col = hcl.colors(5))

MovedCan <- esp_get_country(moveCAN = TRUE)

plot(MovedCan$geometry, col = hcl.colors(5))

# }

Run the code above in your browser using DataLab