specs <- list(
# Create a main plot specification
inset_spec(main = TRUE),
# Create an inset plot specification with explicit dimensions
inset_spec(
xmin = -120, xmax = -100, ymin = 30, ymax = 50,
loc = "right bottom",
width = 0.3
),
# Create an inset with scale factor
inset_spec(
xmin = -120, xmax = -100, ymin = 30, ymax = 50,
loc = "left bottom",
scale_factor = 0.5
)
)
Run the code above in your browser using DataLab