Description Usage Arguments Value See Also Examples
state_winner displays a chloropleth map of United States presidential election results by party on the state level for a given year.
1 | state_winner(Year = 2016, states = c(), label = "candidate")
|
Year |
United States Presidential Election year starting in 1976. |
states |
region to plot. |
label |
legend labels. |
a ggplot map object.
1 2 | state_winner(Year = 1988)
state_winner(states=c("california", "nevada", "arizona", "utah"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.