Project Part 2

Interactive and static plots of alcohol use disorder from 1990 to 2019

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

Interactive Graph

regional_disorders    %>%
group_by(Region)  %>%
  mutate(
         Year = paste(Year, "12", "31", sep="-"))  %>% 
  e_charts(x = Year)   %>% 
  e_river(serie = NumberofPeople, legend=FALSE)  %>% 
  e_tooltip(trigger = "axis")  %>% 
  e_title(text = "Annual Number with Alcohol Disorders",
          subtext = "(in billions of tonnes). Source: Our World in Data",
          sublink = "https://ourworldindata.org/grapher/number-with-alcohol-disorders-by-region",
          left = "center")  %>% 
  e_theme("roma")  

Stactic Graph

regional_disorders   %>% 
  ggplot(aes(x = Year, y = NumberofPeople, 
             fill = Region)) +
  geom_area() +
  colorspace::scale_fill_discrete_divergingx(palette = "roma", nmax =11) +
  theme_classic() +
  theme(legend.position = "bottom") +
  labs( y = "in billions of tonnes",
       fill = NULL)

These plots show that the Number of People with Alcohol Disorders has not had much significant change through out the years. There has been minimal increases and decreases through 1990 to 2019.

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