View source: R/phaseDiagram2S.R
phaseDiagram2S | R Documentation |
Plots phase diagram of a game with two players and two strategies.
phaseDiagram2S( A, dynamic, params = NULL, vectorField = TRUE, strategies = c("1", "2") )
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 |
strategies |
String vector of length 2 that names all strategies. |
None.
Daniel Gebele dngebele@gmail.com
A <- matrix(c(-1, 4, 0, 2), 2, 2, byrow=TRUE) phaseDiagram2S(A, Replicator, strategies = c("Hawk", "Dove"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.