phaseDiagram4S {EvolutionaryGames} | R Documentation |
Phase Diagram for two-player games with four strategies
Description
Plots phase diagram of a game with two players and four strategies.
Usage
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 |
Value
None.
Author(s)
Daniel Gebele dngebele@gmail.com
Examples
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)
[Package EvolutionaryGames version 0.1.2 Index]