Map plots in R with ggplot2
In this post I want to demonstrate how spatial locations can be plotted onto map tiles using the ggplot2 package in R. For this, we first load the relevant packages. In addition, we define a geocoding function using the Open Street Map API. The geocoding function was obtained from https://datascienceplus.com/osm-nominatim-with-r-getting-locations-geo-coordinates-by-its-address/. In the next step, using the […]