Good day,
Let's say I use library(ggmap)
in R to make this map:
ggmap(get_map(location = c(lon = -81.38630, lat = 19.30340), source = "stamen", maptype = "terrain", zoom = 14))
Which gives:
How do I add a small contextual inset map to this image (probably near the top left?) to show the wider geographical area? In this small inset I'd like for it to have a box that outlines where the bigger map fits in.
Thank you for your help.
Here is a possible solution based on the use of
grid
viewports.