Skip to content

Instantly share code, notes, and snippets.

@romainfrancois
Created December 26, 2017 22:51
Show Gist options
  • Save romainfrancois/95c5d8a68a6037434af3dca9bc6e427f to your computer and use it in GitHub Desktop.
Save romainfrancois/95c5d8a68a6037434af3dca9bc6e427f to your computer and use it in GitHub Desktop.
library(rtweet)
library(tidyverse)
library(emo)
library(lubridate)
tweets <- get_timeline("dataandme", include_rts = FALSE, n = 5000)
tweets %>%
mutate(
date = as_date(created_at),
emojis = ji_count(text)
) %>%
group_by( date ) %>%
summarise( emojis = sum(emojis) ) %>%
ggplot(aes(date,emojis)) + geom_smooth() + geom_point()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment