Project Part 2

Interactive and static plots of Global Vaccination Coverage.

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

Interactive graph

regional_vaccines   %>%
  pivot_longer(cols = 1:12, names_to = "disease", values_to = "percent") %>% 
  arrange(percent)  %>% 
  e_charts(x = disease)   %>% 
  e_bar(percent, legend=FALSE)  %>% 
  e_flip_coords() %>% 
  e_tooltip(trigger = "axis")  %>% 
  e_title(text = "Global Vaccination Coverage, by disease",
          subtext = "(in percentages). Source: Our World in Data",
          sublink = "https://ourworldindata.org/vaccination#global-vaccine-coverage",
          left = "center")  %>% 
  e_theme("roma")

Static graph

regional_vaccines   %>% 
  pivot_longer(cols = 1:12, names_to = "disease" , values_to = "percent") %>% 
  ggplot(aes(x = percent, y = disease)) +
geom_col() +
  geom_area() +
  theme_classic() +
  theme(legend.position = "bottom") +
  labs( y = "disease",
       fill = NULL)

These plots show what diseases have the highest vaccination coverage in percentages. Globally, Tuberculosis has the highest vaccine rate at 88% and the lowest being Rotavirus at 39%.

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