How to add maps to a ggplot2 figure in R (CC264)

November 10, 2022 • PD Schloss • 1 min read

Pat shows how to add a world map to his ggplot2 generated heatmap in R to better display the country boundaries. Along the way he’ll stylize the figure and work through some problems with pushing his changes to GitHub. The overall goal of this project is to highlight reproducible research practices using a number of tools. The specific output from this project will be a map-based visual that shows the level of drought across the globe. The website we generate in this episode can be found at https://www.riffomonas.org/drought_index.

Code

You can browse the state of the repository at the