Description Usage Arguments Value Author(s) Examples

View source: R/phaseDiagram4S.R

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

1 2 | ```
phaseDiagram4S(A, dynamic, params = NULL, trajectory = NULL,
strategies = c("1", "2", "3", "4"), noRGL = TRUE)
``` |

`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 |

None.

Daniel Gebele [email protected]

1 2 3 4 | ```
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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.