View source: R/esp-get-spain.R
| esp_get_spain | R Documentation |
Returns the boundaries of Spain as a single sf POLYGON at a
specified scale.
esp_get_spain(moveCAN = TRUE, ...)
moveCAN |
A logical |
... |
Arguments passed on to
|
Dataset derived from NUTS data provided by GISCO. Check esp_get_nuts() for
details.
A sf POLYGON object.
Please check the download and usage provisions on gisco_attributions().
https://gisco-services.ec.europa.eu/distribution/v2/.
Copyright: https://ec.europa.eu/eurostat/web/gisco/geodata/administrative-units.
Other datasets representing political borders:
esp_get_capimun(),
esp_get_ccaa(),
esp_get_ccaa_siane(),
esp_get_comarca(),
esp_get_countries_siane(),
esp_get_gridmap,
esp_get_munic(),
esp_get_munic_siane(),
esp_get_nuts(),
esp_get_prov(),
esp_get_prov_siane(),
esp_get_simpl,
esp_get_spain_siane(),
esp_siane_bulk_download()
Other nuts:
esp_get_nuts()
Datasets provided by GISCO:
esp_get_ccaa(),
esp_get_munic(),
esp_get_nuts(),
esp_get_prov()
original_can <- esp_get_spain(moveCAN = FALSE)
# One row only
original_can
library(ggplot2)
ggplot(original_can) +
geom_sf(fill = "grey70")
# Less resolution
moved_can <- esp_get_spain(moveCAN = TRUE, resolution = 20)
ggplot(moved_can) +
geom_sf(fill = "grey70")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.