How to create a ridgeline plot in R with ggridges in RStudio (CC226)

June 30, 2022 • PD Schloss • 1 min read

Pat creates a ridgeline plot (aka a joy plot) using the ggridges R package to show the distribution of annual average temperature anomalies. As part of this episode he shows how to read data from a NetCDF file into R and flatten it into a tidy data frame using the data.table R package. He also makes use of tools from the dplyr, ggplot2, and other packages from the tidyverse. The data depicted are the average annual temperature anomalies by latitude and longitude using NASA’s GISS data. All of this is done in R with the help of RStudio.

Code

You can browse the state of the repository at the