show_path displays the paths played under a solution.

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

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