plot_election_map: Plot an election map

Description Usage Arguments Value Examples

View source: R/plot-election.R

Description

Plot an election map

Usage

1
2
3
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

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

paleolimbot/electionca documentation built on Jan. 23, 2020, 4:36 p.m.