powered by
Plots phase diagram of a game with two players and four strategies.
phaseDiagram4S( A, dynamic, params = NULL, trajectory = NULL, strategies = c("1", "2", "3", "4"), noRGL = TRUE )
None.
Numeric matrix of size 4x4 representing the number of strategies of a symmetric matrix game.
Function representing an evolutionary dynamic.
Numeric vector with additional parameters for the evolutionary dynamic.
Numeric vector of size 4 representing the initial value for the trajectory to be examined.
String vector of length 4 that names all strategies.
Logical value that handles diagram rotation. If set to FALSE, diagram will be rotatable, otherwise not. Default is TRUE.
FALSE
TRUE
Daniel Gebele dngebele@gmail.com
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)
Run the code above in your browser using DataLab