Plotting the global temperature index as bars using ggplot2 and NASA GISS data (CC215)

May 23, 2022 • PD Schloss • 1 min read

In this Code Club, Pat uses tools from the ggplot2 R packge to recreate a temperature index plot as bars using NASA’s GISS data. This figure shows the deviation in annual global mean temperatures from the normalized temperatures of 1951 to 1980. The bars are colored according to the deviation from the average global temperature. He uses geom_col, scale_fill_gradient, scale_fill_gradient2, scale_fill_gradientn, scale_fillstepsn, 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

comments powered by Disqus