This vignette covers loading boundary data, looking up official names, joining your own data, and producing static and interactive maps.
Install pkmapr from CRAN:
Or install the development version from GitHub:
Retrieve province boundaries and produce a map in two lines:
Official administrative names in the OCHA/HDX data may differ from
common spellings. Use pk_dictionary() to confirm names and
codes before filtering or joining:
pk_join() merges a data frame into an sf
object by a shared code column, keeping geometries intact:
pk_map_interactive() produces a leaflet map with
popups:
vignette("spatial-analysis-pkmapr") — buffers,
centroids, and point-in-polygon operationsvignette("epidemiology-pkmapr") — spatial
autocorrelation, LISA clusters, and hotspot detection