Creating a map using tmap
R
Use tmap to add an inset map to a map, making sure it aligns well with the legend. Tags: tmap, R, cartography
With the tmap package you can map good looking maps in R. One of the elements you may want to include in a map is an inset map, which shows for example the location of your main map within a larger region (country for example). The tricky part of doing this with tmap is to properly align the legend and the inset map. This short tutorial shows you how to do this. This short tutorial was published as a blog post. Click here to go to tutorial.