Project Part 2

Interactive and static plots of Registered Mobile Money Accounts from 2006 to 2018

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

Interactive graph

account_mobile   %>% 
 e_charts(x = Year)   %>% 
  e_river(serie = MobileMoneyAccounts, legend=FALSE)  %>% 
  e_tooltip(trigger = "axis")  %>% 
  e_title(text = "Annual Registered Mobile Money Accounts, 2006 to 2018",
          subtext = "(in millions of accounts). Source: Our World in Data",
          left = "center")  %>% 
  e_theme("roma") 

Static graph

account_mobile   %>%
  ggplot(aes(x = Year, y = MobileMoneyAccounts, 
             fill = account)) +
  geom_area() +
  colorspace::scale_fill_discrete_divergingx(palette = "roma", nmax =12) +
  theme_classic() +
  theme(legend.position = "bottom") +
  labs( y = "in millions of accounts",
       fill = NULL)

These plots show a steady increase in accounts since 2016. Accounts had a very big spike after 2011.

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