Project Part 2

Interactive and static plots of Literate and Illiterate world populations from 1030-2016. Worked with Aslyn Eels on this project.

  1. Packages I will use to read in tnd plot the data
  1. Read the data in from part 1
literate_and_illiterate <- read_csv(here::here("_posts","2022-04-27-project-part-1", "literate_and_illiterate.csv"))

Interactive Graph

literate_and_illiterate %>% 
  e_charts(x=Year) %>% 
  e_river(Literate) %>% 
  e_river(Illiterate) %>% 
  e_tooltip(trigget="axis") %>% 
  e_title(text = "Literate and Illiterate World Population",
          sublink = "https://ourworldindata.org/grapher/literate-and-illiterate-world-population",
left="center")

Static Graph

literate_and_illiterate %>% 
  pivot_longer(cols = 2:3, names_to = "status", values_to = "percent") %>% 
  ggplot(aes(x=Year, y=percent, fill = status)) +
geom_area() +
  theme_classic() +
  theme(legend.position = "bottom") +
  labs(y= "percent", fill=NULL)

These plots show a steady increase in literacy in the world population from 1930-2016. Literacy has continued to increase.

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