Plot an election map

plot_election_map(years = 2006:2019, provinces = election_provinces())

plot_election(years = 2006:2019, provinces = election_provinces())

Arguments

years

A vector of election_years() that will be included in the plot. Riding geography is currently only available for elections after 2006.

provinces

One or more election_provinces() (or terretories) include in the data. The order of provinces is kept in the data by making the province variable a factor.

Value

A ggplot2::ggplot()

Examples

plot_election(2019, "Ontario")
plot_election_map(2019, "Ontario")