drawJohnstonIndex: Draw Johnston index for 3 or 4 players

Description Usage Arguments Value References Examples

View source: R/JohnstonConcept.R

Description

drawJohnstonIndex draws the Johnston index for 3 or 4 players.

Usage

1
2
3
4
5
6
7
drawJohnstonIndex(
  v,
  holdOn = FALSE,
  colour = NA,
  label = TRUE,
  name = "Johnston index"
)

Arguments

v

Numeric vector of length 2^n - 1 representing the values of the coalitions of a TU game with n players

holdOn

draws in a existing plot

colour

draws the geometric object (i.e. point or convex polyhedron) with this colour, all colour names can be seen with "colors()"

label

activates the labels for the figure

name

set a name for the label

Value

None.

References

Johnston R.J. (1978) "On the measurement of power: Some reactions to Laver", Environment and Planning A, pp. 907–914

Chakravarty S.R., Mitra M. and Sarkar P. (2015) A Course on Cooperative Game Theory, Cambridge University Press, p. 124

Examples

1
2
3
library(CoopGame)
v <- c(0,0,0,1,1,0,1)
drawJohnstonIndex(v)

CoopGame documentation built on Aug. 24, 2021, 1:07 a.m.