gg_wp_chart: Win Probability Charts in ggplot

View source: R/gg_wp_chart.R

gg_wp_chartR Documentation

Win Probability Charts in ggplot

Description

Renders Win Probability Charts in ggplot

Usage

gg_wp_chart(game_id, home_col, away_col, include_spread = T, show_labels = T)

Arguments

game_id

ESPN game_id for which to render chart

home_col

Color of home team for chart

away_col

Color of away team for chart

include_spread

Logical, whether to include pre-game spread in Win Probability calculations. Default = True.

show_labels

Logical whether Game Exictement Index and Minimum Win Probability metrics should be displayed on the plot. Default = TRUE.


lbenz730/ncaahoopR documentation built on May 4, 2024, 1:35 p.m.