Description Usage Arguments Value
View source: R/data-manipulation.R
Join aggregated party data to spatial data
1 2 | join_to_spatial(party_votes, elections, resolution = c("high", "low"),
election_date = NULL)
|
party_votes |
A data frame of vote percentages by party. |
elections |
A data frame containing metadata about the NNV elections being mapped. |
resolution |
Use |
election_date |
The date to use when getting the county boundaries. |
A sf
object with polygons for the appropriate geographies and
the data joined to them.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.