|
USelections
|
Results of the US Presidential elections by state 1976-2016 |
|
add_control_points()
|
Add control points to the middle of a two-point data frame |
|
bead_snake_plot()
|
Plot state electoral votes as beads on a string |
|
clean_districts()
|
Clean up district labels |
|
compute_control_point()
|
Helper function |
|
compute_dir()
|
Helper function |
|
cum_half_sum()
|
Helper function |
|
elections
|
State-level election results of US presidential elections |
|
electoral_building()
|
Electoral Building |
|
electoral_hex
|
Hexbin map of the United States by electoral votes |
|
electoral_state_outline_hex
|
Hexbin map of the United States by electoral votes |
|
electoral_votes_2016
|
Electoral votes corresponding to U.S. states and Maine, Nebraska congressional districts |
|
fivethirtyeight_update()
|
Update to the newest polls provided by FiveThirtyEight |
|
ggsnake()
|
Create an Electoral Snake Plot |
|
hexplot()
|
Hexagonal cartogram of the US by state |
|
mysumfun()
|
Helper function |
|
polls_filter()
|
Select polls |
|
polls_plus()
|
Average polls and supplement with election data |
|
pop_hex
|
Hexbin map of the United States by population |
|
presidential_polls
|
Polls for the presidential general election |
|
rcp_update()
|
This function returns the latest polls from Real Clear Politics |
|
scale_color_party()
|
Color scale for two parties |
|
scale_color_party_binned()
|
Color scale for binned gradient between two parties |
|
scale_color_partygrad()
|
Color scale for gradient between two parties |
|
scale_colour_party()
|
Color scale for two parties |
|
scale_colour_party_binned()
|
Color scale for binned gradient between two parties |
|
scale_colour_partygrad()
|
Color scale for gradient between two parties |
|
scale_fill_party()
|
Fill scale for two parties |
|
scale_fill_party_binned()
|
Fill scale for binned gradient between two parties |
|
scale_fill_partygrad()
|
Fill scale for gradient between two parties |
|
set_up_beads()
|
Helper function |
|
split_df_bezier()
|
Split the bead dataframe into directional segments |
|
ushex
|
Hexbin map of the United States |