positional_tie_line_utils: Locate endpoints of positional tie lines

Description Usage Arguments

Description

These functions are used to plot positional election results. They locate the points where positional tie lines intersect edges of the ternary diagram.

Usage

1
2
3
4
5
6
7
8
9

Arguments

pxy, pyx, pzx, pzy

Second preference shares. e.g. pxy is the proportion of ballots that rank y second, given that they rank x first.

s

The score given to second-ranked candidates in the positional method. s = 0 corresponds to plurality, s=.5 corresponds to Borda count.

p_vec

A vector of second preference shares. If candidates are A, B, and C (plotted at lower left, top, and lower right), then p_vec is (pAB, pAC, pBA, pBC, pCA, pCB).


aeggers/votevizr documentation built on June 4, 2021, 9:10 p.m.