Project Part 2

Interactive and static plots of temperature anomalies from 1965 to 2021.

  1. Packages I will use to read in and plot the data.
  1. Read the data in from part 1.
monthly_temperature_anomaly <- read_csv(here::here("monthly_temperature_anomaly.csv"))

Interactive Graph

monthly_temperature_anomaly %>%
  e_charts(x = Date) %>% 
  e_line(serie = Temperature_anomaly) %>% 
  e_tooltip() %>% 
  e_title(text = "Global warming: monthly temperature anomaly",
          subtext = "(in °C) Source: Our World in Data",
          sublink = "https://ourworldindata.org/explorers/climate-change",
          left = "center") %>%
  e_theme("roma") %>% 
  e_legend(top = 40)

Static Graph

monthly_temperature_anomaly %>% 
  ggplot(aes(x = Date, y = Temperature_anomaly, color = Temperature_anomaly)) +
  geom_point() +
  theme_grey() +
  ggtitle("Global warming: monthly temperature anomaly",
          subtitle = "(in °C) Source: Our World in Data")

These plots show a steady increase in temperature since 1965. Climate change is increasing.

ggsave(filename = here::here("_posts/2022-05-03-project-part-2/preview.png"))