Changelog
Source:NEWS.md
ggmapinset 0.5.0
CRAN release: 2026-03-25
-
coerce_centre()is a new extension point needed by {ggautomap}. - The
insetparam of layer helpers andgeom_sf_inset()no longer acceptsNA. Insteadwaiver()is used as the default, andNULLstill disables the inset. This should be updated in any extensions usingbuild_sf_inset_layers(). -
geom_sf_inset()no longer draws the inset ifinset = waiver()but there is no inset configured on the coord. - We now correctly declare the minimum supported R version.
ggmapinset 0.4.0
CRAN release: 2024-12-18
- Added support for rectangular insets via
shape_rectangle(). - Added support for arbitrary insets via
shape_sf().
ggmapinset 0.3.0
CRAN release: 2023-04-28
- Replaced the confusing
inset_clipandinset_copyparameters ofgeom_sf_inset()with the newmap_baseandmap_insetparameters. - Inset frame aesthetics can now be specified consistently.
- A default inset configuration can be passed to
coord_sf_inset()to avoid repeating it for every layer. - Insets are now based on
stat_sf_inset()which correctly adjusts the coordinate limits and computes some inset-related variables for downstream use. - The new
stat_sf_coordinates_inset(),geom_sf_text_inset(), andgeom_sf_label_inset()labels complete the coverage of sf-related layers. - Added
transform_to_inset()helper for applying the inset transformation to arbitrary geometries (for extension developers).