make_alluvialdf: Creates a data frame for use with the alluvial package

Description Usage Arguments Value Examples

View source: R/plot_functions.R

Description

Creates a data frame for use with the alluvial package

Usage

1
make_alluvialdf(image, rcvcontest)

Arguments

image

A dataframe containing rcv election data

rcvcontest

The election to calculate results for

Value

A dataframe that counts how many ballots follow each unique "path" of candidates through the election rounds

Examples

1
2
3
4
## Not run: 
make_alluvialdf(image = sf_bos_clean, rcvcontest = "Board of Supervisors, District 7")

## End(Not run)

ds-elections/rcv documentation built on Feb. 18, 2020, 8:34 p.m.