+ - 0:00:00
Notes for current slide
Notes for next slide

mapSpain mapSpain-logo (on CRAN)

Key features:

  • Easy mapping of boundaries of Spain (nation-wide, autonomous communities, provinces, municipalities).
  • Use of WMS/WMTS image tiles (Google Maps-like) on either static and interactive maps (with {leaflet}) provided by Spanish public organisms.

  • Translates names of autonomous communities and provinces across languages (Spanish, English, Catalan, ...) and into standardized codes (ISO, NUTS, INE codes, ...)

Data sources:

Output formats:

  • sf for vectors (as boundaries, roads, etc.)
  • SpatRaster (terra) for static tiles.
1

Quick demo

library(mapSpain)
library(tidyverse)
galicia <- esp_get_munic_siane(region = "Galicia") %>%
mutate(
Provincia = esp_dict_translate(ine.prov.name, "es")
)
ggplot(galicia) +
geom_sf(aes(fill = Provincia),
color = "grey70"
) +
labs(title = "Provincias de Galicia") +
scale_fill_discrete(
type =
hcl.colors(4, "Blues")
) +
theme_bw()

2

Quick demo

library(mapSpain)
library(tidyverse)
galicia <- esp_get_munic_siane(region = "Galicia") %>%
mutate(
Provincia = esp_dict_translate(ine.prov.name, "es")
)
ggplot(galicia) +
geom_sf(aes(fill = Provincia),
color = "grey70"
) +
labs(title = "Provincias de Galicia") +
scale_fill_discrete(
type =
hcl.colors(4, "Blues")
) +
theme_bw()

2
Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
Esc Back to slideshow