Skip to contents

Make a map

Composed maps of Portugal (mainland + island insets) and one-liner choropleths.

plot_pt()
Quick map of Portugal
get_map()
Get a composed map of Portugal

Island layout

How the Açores and Madeira are shown, and helpers for drawing the frames and island labels with echarts4r.

island_layout()
Lay out the islands
frame_data_echarts()
Build echarts frame styling data
box_labels_echarts()
Add labels to an echarts map

Join and match

Getting custom data onto official units.

pt_join()
Add official codes and administrative context to a data frame
pt_match()
Match place names to official codes
pt_match_report()
Retrieve the match report from a pt_match result
pt_normalize()
Normalize Portuguese place names for matching
pt_pad_code()
Restore leading zeros in administrative codes

Vintages

Converting freguesia-level data between boundary vintages.

pt_crosswalk()
Correspondence between two administrative vintages
pt_recode()
Convert freguesia-level data between code vintages

Download client

Full-resolution CAOP downloads, INE census geographies, and the DGT OGC API.

GeoClient
GeoClient
get_censos()
Get INE census geographies (BGRI, secções, GRID)

Data

Bundled boundaries and lookup tables.

pt_freguesias pt_municipios pt_distritos pt_nuts1 pt_nuts2 pt_nuts3 pt_uls pt_reg_saude pt_aces pt_uls_municipio pt_aces_municipio
Simplified Portuguese administrative boundaries
pt_censos_vars
Census variables available from get_censos()
pt_registry
Portuguese administrative units, every vintage
pt_lookup()
Administrative, NUTS and health codes for one choice of each vintage
pt_health_codes
Health geography of Portuguese freguesias, both vintages
pt_nuts_codes
NUTS classification of Portuguese municípios, every revision