Project Part 2

Interactive and static plots of media platform active users from 2005 to 2019.

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

Interactive graph

media_activity   %>%
  group_by(media_platforms)  %>%
  mutate(active_users = round(active_users, 2),
         Year = paste(Year, "12", "31", sep="-"))  %>% 
  e_charts(x = Year)   %>% 
  e_river(serie = active_users, legend=FALSE)  %>% 
  e_tooltip(trigger = "axis")  %>% 
  e_title(text = "Monthly Active Users, by Media Platform",
          subtext = "(in billions of users). Source: Our World in Data",
          sublink = "https://ourworldindata.org/social-connections-and-loneliness#social-media-started-in-the-early-2000s",
          left = "center")  %>% 
  e_theme("roma")  

Static graph

media_activity   %>% 
  ggplot(aes(x = Year, y = active_users, 
             fill = media_platforms)) +
  geom_area() +
  colorspace::scale_fill_discrete_divergingx(palette = "roma", nmax =19) +
  theme_classic() +
  theme(legend.position = "bottom") +
  labs( y = "in billions of users",
       fill = NULL)
ggsave(filename = here::here("_posts/2022-05-09-project-part-2/preview.png"))

These plots show a steady increase as well as decrease in active users for different platforms since 2005. Active users for Facebook, Twitter, and Pinterest continued to increase going into 2019.