Voter classes

Create voters with specified positions and roles.

Voter() Veto() AS() RandomVoter()

Voter Classes

initialize(<Voters>) Voters() as.voters()

Voters Class.

`+`(<Voter>,<Voter>) `+`(<Voters>,<Voter>) `+`(<Voter>,<Voters>) `+`(<Voters>,<Voters>)

Aggregate Voters.

create_voter_array() create_role_array()

Voters Array Generators

initialize(<Position>) is.position()

Assigns the `position` vector and `dimension`, with default dimension of length(position).

initialize(<Voter>)

Constructor for Voter class.

SQ class

Create status quo with specified position.

SQ()

S4 class representing the Status Quo.

Vote

Let a Voters object vote a certain number of iterations.

Vote()

Vote.

determine_voters() determine_coalitions()

Determine possible coalitions based on agenda setter, veto players and normal voters. The agenda setter and veto players must always be part of the coalition. determine_voters determines how many voters, apart from agenda setter and veto players, are required to form a majority coalition. determine_coalitions lists all possible combinations of normal voters to join such coalition.

solve_vote()

Solve a voting problem using ECOSolver.

get_winset()

Retrieve winset spatial polygons from `Vote` objects.

Plot

Plot and animate results of votes.

plot(<Vote>) plot_roles() plot_coalition()

Visualize votes.

animate()

Animate selected iterations of a Vote object.

geom_half_circle() stat_half_circle()

Half-Circles with pre-defined radii.