Package: mapSpain 1.1.0.9000

mapSpain: Administrative Boundaries of Spain

Administrative boundaries of Spain at several levels (Autonomous Communities, provinces and municipalities), based on 'GISCO' from 'Eurostat' <https://ec.europa.eu/eurostat/web/gisco> and 'CartoBase ANE' from 'Instituto Geográfico Nacional' <https://www.ign.es/>. It also provides a plugin for the 'leaflet' package and tools to download and process static map tiles.

Authors:Diego Hernangómez [aut, cre, cph], Eurostat [cph], Instituto Geográfico Nacional [cph], Francisco J. Goerlich [ctb]

mapSpain_1.1.0.9000.tar.gz
mapSpain_1.1.0.9000.zip(r-4.7)mapSpain_1.1.0.9000.zip(r-4.6)mapSpain_1.1.0.9000.zip(r-4.5)
mapSpain_1.1.0.9000.tgz(r-4.6-any)mapSpain_1.1.0.9000.tgz(r-4.5-any)
mapSpain_1.1.0.9000.tar.gz(r-4.7-any)mapSpain_1.1.0.9000.tar.gz(r-4.6-any)
mapSpain_1.1.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
mapSpain/json (API)
NEWS

# Install 'mapSpain' in R:
install.packages('mapSpain', repos = c('https://dieghernan.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ropenspain/mapspain/issues

Pkgdown/docs site:https://ropenspain.github.io

Datasets:

On CRAN:

Conda:

ropenspaintilesmapsspatialmunicipalitiesspaingiscoprovincesignadministrative-boundariesccaastatic-tilesggplot2gisquarto

9.24 score 49 stars 1 packages 319 scripts 1.6k downloads 46 exports 80 dependencies

Last updated from:ab97a9c1ea. Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK180
source / vignettesOK241
linux-release-x86_64OK181
macos-release-arm64OK232
macos-oldrel-arm64OK145
windows-develOK159
windows-releaseOK143
windows-oldrelOK157
wasm-releaseOK139

Exports:addProviderEspTilesesp_check_accessesp_clear_cacheesp_detect_cache_diresp_dict_region_codeesp_dict_translateesp_get_attributionsesp_get_can_boxesp_get_can_provincesesp_get_capimunesp_get_ccaaesp_get_ccaa_sianeesp_get_comarcaesp_get_countries_sianeesp_get_countryesp_get_grid_BDNesp_get_grid_BDN_ccaaesp_get_grid_ccaaesp_get_grid_EEAesp_get_grid_ESDACesp_get_grid_MTNesp_get_grid_provesp_get_hex_ccaaesp_get_hex_provesp_get_hydrobasinesp_get_hypsobathesp_get_municesp_get_munic_sianeesp_get_nutsesp_get_provesp_get_prov_sianeesp_get_railwayesp_get_riversesp_get_roadsesp_get_simpl_ccaaesp_get_simpl_provesp_get_spainesp_get_spain_sianeesp_get_stationsesp_get_tilesesp_get_wetlandsesp_getTilesesp_make_provideresp_move_canesp_set_cache_diresp_siane_bulk_download

Dependencies:askpassbase64encbriobslibcachemcallrclassclassIntclicountrycodecrayoncrosstalkcurlDBIdescdiffobjdigeste1071evaluatefarverfastmapfontawesomefsgiscoRgluehighrhtmltoolshtmlwidgetshttr2jquerylibjsonliteKernSmoothknitrlabelinglatticelazyevalleafletleaflet.providerslifecyclemagrittrMASSmemoisemimeopensslpillarpkgbuildpkgconfigpkgloadpngpraiseprocessxproxypsR6rappdirsrasterRColorBrewerRcpprlangrmarkdownrprojroots2sassscalessfspsysterratestthattibbletinytexunitsutf8vctrsviridisLitewaldowithrwkxfunyaml

Get started

Rendered frommapSpain.qmdusingquarto::htmlon Jun 05 2026.

Last update: 2026-06-05
Started: 2026-02-16

Imagery and mapSpain

Rendered fromimagery.qmdusingquarto::htmlon Jun 05 2026.

Last update: 2026-06-05
Started: 2026-02-16

Readme and manuals

Help Manual

Help pageTopics
Add a tile layer from Spanish public administrations to a 'leaflet' mapaddProviderEspTiles
Clear your 'mapSpain' cache directoryesp_clear_cache
Database with codes and names of Spanish regionsesp_codelist
Convert and translate Spanish subdivision names and codesesp_dict_region_code esp_dict_translate
Canary Islands inset box and outlineesp_get_can_box esp_get_can_provinces
City where the municipal public authorities are based - SIANEesp_get_capimun
Autonomous Communities of Spain - GISCOesp_get_ccaa
Autonomous Communities of Spain - SIANEesp_get_ccaa_siane
Comarcas of Spainesp_get_comarca
Countries of the world - SIANEesp_get_countries_siane
National geographic grids from BDN (Nature Data Bank)esp_get_grid_BDN esp_get_grid_BDN_ccaa
National geographic grids from the European Soil Data Centre (ESDAC)esp_get_grid_ESDAC
National geographic grids from IGN MTN (Mapa Topografico Nacional)esp_get_grid_MTN
Get a 'sf' hexbin or squared 'POLYGON' of Spainesp_get_gridmap esp_get_grid_ccaa esp_get_grid_prov esp_get_hex_ccaa esp_get_hex_prov
River basin districts of Spain - SIANEesp_get_hydrobasin
Hypsometry and bathymetry of Spain - SIANEesp_get_hypsobath
Rivers and wetlands of Spain - SIANEesp_get_landwater esp_get_rivers esp_get_wetlands
Municipalities of Spain from GISCOesp_get_munic
Municipalities of Spain from SIANEesp_get_munic_siane
Territorial Spanish units for statistics (NUTS) datasetesp_get_nuts
Provinces of Spain from GISCOesp_get_prov
Provinces of Spain from SIANEesp_get_prov_siane
Railways of Spain - SIANEesp_get_railway esp_get_stations
Roads of Spain - SIANEesp_get_roads
Simplified map of provinces and Autonomous Communities of Spainesp_get_simpl esp_get_simpl_ccaa esp_get_simpl_prov
Boundaries of Spain - GISCOesp_get_country esp_get_spain
Boundaries of Spain - SIANEesp_get_spain_siane
Get static map tiles from public administrations of Spainesp_getTiles esp_get_attributions esp_get_tiles
Create a custom tile provideresp_make_provider
Displace a 'sf' object located in the Canary Islandsesp_move_can
NUTS 2024 for Spain 'sf' objectesp_nuts_2024
Set your 'mapSpain' cache directoryesp_detect_cache_dir esp_set_cache_dir
SIANE bulk downloadesp_siane_bulk_download
Public WMS and WMTS providers for Spainesp_tiles_providers
Population of Spain by municipality (2025)pobmun25