Learn R Programming

EvolutionaryGames (version 0.1.2)

phaseDiagram2S: 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")
)

Value

None.

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.

Author

Daniel Gebele dngebele@gmail.com

Examples

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

Run the code above in your browser using DataLab