Access soilgrid data using the WCS protocol

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.