Project Part 2

Interactive and static plots of global warming.

  1. Packages I will use to read in and plot the data
  1. Read the data in from part 1
regional_anomaly <- read_csv(here::here("_posts", "2022-05-09-project-part-1","regional_anomaly.csv"))

Interactive graph

regional_anomaly %>% 
    e_charts(x = Date) %>% 
  e_line(temperature_anomaly, legend = FALSE) %>% 
    e_tooltip(trigger = "axis") %>% 
  e_title(text = "Global temperature anomaly") %>%
e_theme("roma")

Static graph

regional_anomaly %>%
  ggplot(aes(x = Date, y = temperature_anomaly)) +
  geom_line() +
  theme_classic() +
  theme(legend.position = "bottom") +
  labs( y = "Temperature anomaly",title = "Global temperature anomaly")

These plots show a constant increase in temperature anomaly

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