ggmapinset
R package ggmapinset by cidm-ph — release notes from GitHub.
A ggplot2 inset-map extension that is now infrastructure for other packages
◆Recent moves
- 4mo ago
New extension point for ggautomap; waiver() replaces NA
Mostly a change for downstream authors: coerce_centre() is added as an extension point ggautomap requires, and the inset parameter now defaults to waiver() rather than accepting NA, with NULL still disabling insets. Anything built on build_sf_inset_layers() needs updating, and geom_sf_inset() now stays quiet when no inset is configured on the coord.
View source ↗ - 1y ago
Rectangular and arbitrary sf inset shapes
shape_rectangle() and shape_sf() lift the inset from a fixed shape to any geometry the user supplies. For maps of administrative areas that are rarely circular, this is the change that makes the inset match the region rather than approximate it.
View source ↗ - 3y ago
Rebuilt on stat_sf_inset() with corrected coordinate limits
The structural release. Confusing inset_clip and inset_copy parameters give way to map_base and map_inset, a default inset configuration can live on the coord instead of every layer, and everything moves onto stat_sf_inset() so coordinate limits adjust correctly. Text and label stats complete sf layer coverage, and transform_to_inset() is the first explicit nod to extension developers.
View source ↗