phaseDiagram4S: Phase Diagram for two-player games with four strategies

Description Usage Arguments Value Author(s) Examples

View source: R/phaseDiagram4S.R

Description

Plots phase diagram of a game with two players and four strategies.

Usage

1
2
phaseDiagram4S(A, dynamic, params = NULL, trajectory = NULL,
  strategies = c("1", "2", "3", "4"), noRGL = TRUE)

Arguments

A

Numeric matrix of size 4x4 representing the number of strategies of a symmetric matrix game.

dynamic

Function representing an evolutionary dynamic.

params

Numeric vector with additional parameters for the evolutionary dynamic.

trajectory

Numeric vector of size 4 representing the initial value for the trajectory to be examined.

strategies

String vector of length 4 that names all strategies.

noRGL

Logical value that handles diagram rotation. If set to FALSE, diagram will be rotatable, otherwise not. Default is TRUE.

Value

None.

Author(s)

Daniel Gebele [email protected]

Examples

1
2
3
4
A <- matrix(c(5, -9, 6, 8, 20, 1, 2, -18, -14, 0, 2, 20, 13, 0, 4, -13),
 4, 4, byrow=TRUE)
state <- c(0.3, 0.2, 0.1, 0.4)
phaseDiagram4S(A, Replicator, NULL, state)

EvolutionaryGames documentation built on Nov. 27, 2017, 5:05 p.m.