phaseDiagram2S: Phase Diagram for two-player games with two strategies

View source: R/phaseDiagram2S.R

phaseDiagram2SR Documentation

Phase Diagram for two-player games with two strategies

Description

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

Usage

phaseDiagram2S(
  A,
  dynamic,
  params = NULL,
  vectorField = TRUE,
  strategies = c("1", "2")
)

Arguments

A

Numeric matrix of size 2x2 representing the number of strategies of a symmetric matrix game.

dynamic

Function representing an evolutionary dynamic.

params

Numeric vector representing additional parameters for the evolutionary dynamic.

vectorField

Logical value that handles vector field presentation. If set to TRUE, vector field will be shown, otherwise not. Default is TRUE.

strategies

String vector of length 2 that names all strategies.

Value

None.

Author(s)

Daniel Gebele dngebele@gmail.com

Examples

A <- matrix(c(-1, 4, 0, 2), 2, 2, byrow=TRUE)
phaseDiagram2S(A, Replicator, strategies = c("Hawk", "Dove"))

EvolutionaryGames documentation built on Aug. 29, 2022, 1:06 a.m.