aeggers / votevizr

R package for representing ordinal election results on a ternary/barycentric diagram.
2 stars 1 forks source link

allow for additional Condorcet completion methods #3

Closed aeggers closed 4 years ago

aeggers commented 4 years ago

Allow a Condorcet cycle to be resolved by

Pseudocode:

aeggers commented 4 years ago

less clear how to do this in ggplot.

aeggers commented 4 years ago

maybe the solution is to use spatial stuff -- e.g. https://gis.stackexchange.com/questions/63577/joining-polygons-in-r

union of two polygons. etc

what we want is: you are in A's win region if you're in the Condorcet win region or in the union of the Condorcet cyclical region and the A's e.g. RCV win region.

aeggers commented 4 years ago

Did this just by adding layers -- works very well. A little unsatisfying that first_preference_win_regions() doesn't get the actual regions when if_cycle is IRV or Borda or positional etc.