insetplot: Inset Plots for Spatial Data Visualization

Tools for easily and flexibly creating 'ggplot2' maps with inset maps. One crucial feature of maps is that they have fixed coordinate ratios, i.e., they cannot be distorted, which makes it difficult to manually place inset maps. This package provides functions to automatically position inset maps based on user-defined parameters, making it extremely easy to create maps with inset maps with minimal code.

Version: 1.3.0
Imports: sf, ggplot2, patchwork
Suggests: testthat, knitr, rmarkdown, cowplot
Published: 2025-12-18
DOI: 10.32614/CRAN.package.insetplot (may not be active yet)
Author: Chao Kong ORCID iD [aut, cre, cph]
Maintainer: Chao Kong <kongchao1998 at gmail.com>
BugReports: https://github.com/fncokg/insetplot/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://fncokg.github.io/insetplot/
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: insetplot results

Documentation:

Reference manual: insetplot.html , insetplot.pdf
Vignettes: Inset maps with insetplot (source, R code)

Downloads:

Package source: insetplot_1.3.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): insetplot_1.3.0.tgz, r-oldrel (x86_64): insetplot_1.3.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=insetplot to link to this page.