Inset Plots for Spatial Data Visualization
Configure inset map settings
Extract width, height, and aspect ratio from a bounding box
Compute the union bounding box from multiple shapes
Save a composed inset plot with appropriate dimensions
Create a plot specification for insets
insetplot: Compose ggplot2 maps with insets
Get Last Inset Configuration
Add a border around a map plot
Compose a main plot with inset(s)
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.