Skip to contents

Plots win_prob_after (from tsr_analyze_game()) over plies, with a 0.5 reference and turning points marked. Returns a ggplot.

Usage

tsr_plot_winprob(analysis)

Arguments

analysis

A tibble from tsr_analyze_game().

Value

A ggplot object.

Examples

# \donttest{
g <- tsr_play_game("greedy", "random", seed = 2L) # a short, decisive game
tsr_plot_winprob(tsr_analyze_game(g))

# }