show_path: Plot a game tree with solution paths colored.

View source: R/show_path.R

show_pathR Documentation

Plot a game tree with solution paths colored.

Description

show_path displays the paths played under a solution.

Usage

show_path(x, id = NULL, all = FALSE)

Arguments

x

An extensive_form object defined by extensive_form() or its solution (extensive_sol object) found by solve_efg().

id

An integer value vector of id numbers to specify which solutions to show. By default, the first solution is displayed. This parameter is ignored when all = TRUE.

all

A logical value to determine if all solutions will be displayed. Default is FALSE.

Value

A ggplot object of the specified game tree.

Author(s)

Yoshio Kamijo and Yuki Yanai yanai.yuki@kochi-tech.ac.jp


yukiyanai/rgamer documentation built on June 14, 2024, 7:38 p.m.