Using R to make a 3D interactive figure showing climate change with plotly (CC223)

June 20, 2022 • PD Schloss • 1 min read

Pat will show you how to show evidence of climate change using R to create a 3D interactive climate spiral using the plotly R package. This will all be done using monthly temperature anomalies by month using NASA’s GISS data using tools from the ggplot2 and ggplotly R packages. This figure shows the deviation in annual global mean temperatures from the normalized temperatures of 1951 to 1980 as a line plot. The lines are colored according to the size of the temperature anomaly. He uses ggplotly and plot_ly, and a smattering of arguments from the theme function to create this provocative visual. All of this is done in R with the help of RStudio.

Output

Code

You can browse the state of the repository at the