Draws an arrow from state x to state y if and only if on the equilibrium path there is a positive probability to directly transist from x to y.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | eq_diagram_xgroup(
g,
show.own.loop = FALSE,
show.terminal.loop = FALSE,
use.x = NULL,
just.eq.chain = FALSE,
x0 = g$sdf$x[1],
hide.passive.edge = TRUE,
add.passive.edge = TRUE,
label.fun = NULL,
tooltip.fun = NULL,
active.edge.color = "#000077",
passive.edge.color = "#dddddd",
passive.edge.width = 1,
return.dfs = FALSE,
eq = g[["eq"]],
ap.col = if (has.col(eq, "ap")) "ap" else NA,
font.size = 24,
font = paste0(font.size, "px Arial black")
)
|
g |
The solved game object |
show.own.loop |
Shall a loop from a state to itself be drawn if there is a positive probability to stay in the state? (Default=FALSE) |
show.terminal.loop |
Only relevant if |
use.x |
optionally a vector of state ids that shall only be shown. |
just.eq.chain |
If TRUE only show states that can be reached with positive probability on the equilibrium path when starting from state x0. |
x0 |
only relevant if |
label.fun |
An optional function that takes the equilibrium object and game and returns a character vector that contains a label for each state. |
tooltip.fun |
Similar to |
return.dfs |
if TRUE don't show diagram but only return the relevant edge and node data frames that can be used to call |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.