Created
February 12, 2020 17:29
-
-
Save arvi1000/4ebbf96cc8761c195ffce0cf7e0a198b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
library(data.table) | |
dat <- fread( | |
'name, delegates | |
"BUTTIGIEG", 22 | |
"SANDERS", 21 | |
"WARREN", 8 | |
"KLOBUCHAR", 7 | |
"BIDEN", 6 | |
"Still\nremaining", 3915') | |
ggplot(dat, aes(fct_inorder(name), delegates, fill=name)) + | |
geom_col() + | |
geom_text(aes(label=scales::comma(delegates)), | |
vjust=-0.5, size=3) + | |
theme_classic(base_size = 14) + | |
theme(legend.position='false') + | |
labs(title='Delegate Distribution, after IA & NH', | |
x=NULL, y=NULL) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://twitter.com/arvi1000/status/1227645599266168832?s=20