The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
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 detectionThese binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.