A rug chart in R with ggplot2's geom_segment showing latitudinal temperature anomalies (CC228)

July 7, 2022 • PD Schloss • 1 min read

Pat uses R to create a rug chart using ggplot2’s geom_segment function and then sylizes the heck out of it to try to match an animated version of the same figure from GISS at NASA. The result is a very cool visualization of annual latitudinal temperature anomalies over the past 140+ years. 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 using NASA’s GISS data. All of this is done in R with the help of RStudio.


You can browse the state of the repository at the