Add Inset Panels to Maps
Overview
Helper to add insets based on geom_sf() from 'ggplot2'. This package gives you a drop-in replacement for geom_sf() that supports adding a zoomed inset map without having to create and embed a separate plot.
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.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-02
- NOTE3 OK, 11 NOTE2026-03-10
Documentation
- Help pages
- 13includes a package overview page
- Examples that run
- 100%10 run in a plain check
- Exported functions with examples
- 91%
- Documented parameters
- 69%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 0%
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- 74
12 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/cidm-ph/ggmapinset on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-03-25 · The repository has a site deploy workflow
pkgdown site last built 2026-03-25
Show all practicesHide 1 practice
Dependencies
Installing ggmapinset adds 26 packages (15 with compiled code, 30 MB of source tarballs). Heaviest: sf 9.3 MB, ggplot2 6.0 MB, s2 2.8 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.5.0Latest
- RR 4.5.0 released · 2025-04-11
- 0.4.0
- RR 4.4.0 released · 2024-04-24
- 0.3.02023-04-28 · diff ↗ ·
added 9 exports
StatSfCoordinatesInset, StatSfInset, coord_sf_inset, geom_sf_label_inset, geom_sf_text_inset, get_inset_config, stat_sf_coordinates_inset, stat_sf_inset, transform_to_inset - RR 4.3.0 released · 2023-04-21
- 0.2.32023-02-21
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2023-02-21
- Total releases
- 4 / 3 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1
- Bundled data
- 2.9 KB / 1 file
- Download size
- 548 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ggmapinset")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.