senate_carto | R Documentation |
Produce a Senate cartogram
senate_carto(vote_tally)
vote_tally |
either a |
a ggplot2
object that you can further customize with scales, labels, etc.
No "themeing" is applied to the returned ggplot2 object. You can use theme_voteogram()
if you need a base theme.
## Not run:
# what you'd normally do
sen <- roll_call("senate", 115, 1, 110)
## End(Not run)
# Using a saved object
sen <- readRDS(system.file("extdata", "sen.rds", package = "voteogram"))
senate_carto(sen)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.