gt_plot_banzhaf: Plot Banzhaf index against normalized raw weights

Description Usage Arguments Examples

View source: R/gt_banzhaf.R

Description

Plot Banzhaf index against normalized raw weights

Usage

1
2
gt_plot_banzhaf(weights = c(1, 1), w = weights, q_rule = 0.5,
  q = q_rule, col1 = "red", col2 = "white")

Arguments

weights

Vector of voting weights

q_rule

Threshold for voting success

col1

Canvas color

Line

color

Examples

1
2
 gt_plot_banzhaf(w = 1:5, q=.5)
 gt_plot_banzhaf(w=c(1, 1, 3,7,9,9)/30, q = .5, col1 = "black")

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