Package: geopt 0.1.0

geopt: Tools to Access and Map Spatial Datasets of Portugal

Tools to download, process, and visualize official spatial datasets for Portugal. Get administrative boundaries at all levels and other geographic data ready for mapping. Data from Statistics Portugal (INE), for example retrieved with the 'ineptr2' package, can be joined to the boundaries by place name or code, including names from earlier boundary reforms.

Authors:Carlos Matos [aut, cre, cph]

geopt_0.1.0.tar.gz
geopt_0.1.0.zip(r-4.7-any)geopt_0.1.0.zip(r-4.6-any)geopt_0.1.0.zip(r-4.5-any)
geopt_0.1.0.tgz(r-4.6-any)geopt_0.1.0.tgz(r-4.5-any)
geopt_0.1.0.tar.gz(r-4.7-any)geopt_0.1.0.tar.gz(r-4.6-any)
geopt_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
geopt/json (API)

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

Bug tracker:https://github.com/c-matos/geopt/issues

Pkgdown/docs site:https://c-matos.github.io

Datasets:
  • pt_aces - Simplified Portuguese administrative boundaries
  • pt_aces_municipio - Simplified Portuguese administrative boundaries
  • pt_censos_vars - Census variables available from get_censos
  • pt_distritos - Simplified Portuguese administrative boundaries
  • pt_freguesias - Simplified Portuguese administrative boundaries
  • pt_health_codes - Health geography of Portuguese freguesias, both vintages
  • pt_municipios - Simplified Portuguese administrative boundaries
  • pt_nuts_codes - NUTS classification of Portuguese municípios, every revision
  • pt_nuts1 - Simplified Portuguese administrative boundaries
  • pt_nuts2 - Simplified Portuguese administrative boundaries
  • pt_nuts3 - Simplified Portuguese administrative boundaries
  • pt_reg_saude - Simplified Portuguese administrative boundaries
  • pt_registry - Portuguese administrative units, every vintage
  • pt_uls - Simplified Portuguese administrative boundaries
  • pt_uls_municipio - Simplified Portuguese administrative boundaries

On CRAN:

Conda:

4.78 score 1 stars 15 exports 30 dependencies

Last updated from:c972dda025. Checks:8 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK235
source / vignettesOK313
linux-releaseOK205
macos-releaseOK338
macos-oldrelOK321
windows-develOK231
windows-releaseOK207
windows-oldrelOK211

Exports:box_labels_echartsframe_data_echartsGeoClientget_censosget_mapisland_layoutplot_ptpt_crosswalkpt_joinpt_lookuppt_matchpt_match_reportpt_normalizept_pad_codept_recode

Dependencies:askpassclassclassIntclicurlDBIdigeste1071geojsonsfgeometriesgluehttr2jsonifyKernSmoothlifecyclemagrittropensslproxyR6rapidjsonrRcpprlangs2sfsfheaderssysunitsvctrswithrwk

Boundary vintages and older data
How the freguesias changed | Bringing older data onto today's map | From the 2013 map: splits | From before 2013: mostly merges | When only names are available | Data from the 2001 census | The other way: today's data on the 2013 map | Maps of another vintage | NUTS regions | Matching NUTS names: say which revision

Last update: 2026-10-11
Started: 2026-10-11

Downloading official data
Full-resolution CAOP boundaries | Filtered queries to DGT's online service | Census areas: subsecções, secções and the 1 km grid | Exporting for dashboards | Cache management | Relationship to the rest of geopt

Last update: 2026-10-11
Started: 2026-10-11

Get started with geopt
Portugal's units in brief | A map in one line | Check what matched | Maps as sf objects | Boundaries change over time | Downloading official data | Where to go next

Last update: 2026-10-11
Started: 2026-10-11

Health geographies
Joining health data | Some ULS split municipalities | Before and after the 2024 reform | Notes and limits

Last update: 2026-10-11
Started: 2026-10-11

Joining data
Join by code when available | Join by name | Repeated names | Names from older data | Spelling variants and typos | Checking what matched | Three ways to join | Cleaning names directly

Last update: 2026-10-11
Started: 2026-10-11

Map compositions
Default map | Administrative levels | How the islands are shown | Leaving the islands out | Island groups | Frames around the islands | Islands as rectangles | Moving and resizing the islands | Maps of one region | Quick plots | Mapping libraries | ggplot2 | tmap | echarts4r | plotly

Last update: 2026-10-11
Started: 2026-10-11