Skip to content

Instantly share code, notes, and snippets.

@ranjiGT
Created May 3, 2021 17:54
Show Gist options
  • Save ranjiGT/286db30fc1758cf30ffafe4639001eb5 to your computer and use it in GitHub Desktop.
Save ranjiGT/286db30fc1758cf30ffafe4639001eb5 to your computer and use it in GitHub Desktop.
Pipeline for generating frequency barhplots
roll_calls_imp <-
un_roll_call_issues %>%
left_join(un_roll_calls) %>%
filter(importantvote == 1)
roll_calls_imp %>%
count(issue) %>%
ggplot(aes(reorder(issue, n) , n)) +
geom_col() +
coord_flip()+
xlab("issue")+
ylab("count")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment