Plotting the global temperature index using ggplot2 and NASA GISS data (CC214)

May 19, 2022 • PD Schloss • 1 min read

In this Code Club, Pat uses tools from the ggplot2 R packge to recreate NASA’s temperature index plot using NASA’s GISS data. This figure shows the deviation in annual global mean temperatures from the normalized temperatures of 1951 to 1980. He uses geom_line, geom_point, geom_smooth, and a smattering of arguments from the theme function. All of this is done in R with the help of RStudio.

Code

You can browse the state of the repository at the