gt_cycles: Calculate and plot chaotic cycles

Description Usage Arguments Examples

View source: R/gt_cycles.R

Description

Plots chaotic majority rule cycles. We randomly select n voters and construct a sequence of k motions, each of which is majority preferred to the previous one in the sequence. Parameter z is used to scale the graph and a seed ("seed") is used for replication

Usage

1
2
3
4
5
6
gt_cycles(n_voters = 3, n = n_voters, n_motions = 3, k = n_motions,
  seed = 1, z = 3, col1 = "red", coli = "black", colp = "red",
  pointcex = 0.5, xlab = "Issue 1", ylab = "Issue 2", ann = TRUE,
  axes = TRUE, a2z = FALSE, a2zcol = "red", a2zw = 2,
  a2zclose = 0.025, alab = "", zlab = "", inner = FALSE,
  colrange = rep(col1, k), col2 = colrange[k], mar = rep(2, 4))

Arguments

n

Number of voters

k

Number of motions

seed

optionally set a seed

z

size of plane for plotting xlim(-z,z)

a

Alternative policy

Examples

1
gt_cycles(3,5)

macartan/hop documentation built on Jan. 4, 2022, 9:21 p.m.