Project Part 2

Interactive and static plots of depression symptoms.

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

Interactive graph

Depression_symptoms_not_shown %>% 
  mutate(NAA = round(NAA, 2)) %>%
  arrange(NAA) %>% 
  e_charts(x = Symptoms) %>% 
  e_bar(serie = NAA, legend = FALSE) %>% 
  e_flip_coords() %>% 
  e_tooltip(trigger = "axis") %>% 
  e_title(text = "Depression Symptoms not shown",
          subtext = "(in 2014) Source; Our World in Data",
          sublink = "https://ourworldindata.org/what-is-depression",
          left = "center") %>% 
  e_theme("roma")

static graph

Depression_symptoms_not_shown %>% 
  ggplot(aes(x = Symptoms, y = NAA)) +
  geom_col() + 
  coord_flip() +
  theme_classic() +
  theme(legend.position = "bottom") 

These plots show the the rate of which symptom was not shown at all.

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