wp_chart_new: Win Probability Chart

View source: R/wp_chart_new.R

wp_chart_newR Documentation

Win Probability Chart

Description

Renders Win Probability Charts in ggplot

Usage

wp_chart_new(
  game_id,
  home_col = NULL,
  away_col = NULL,
  home_team = NULL,
  away_team = NULL,
  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. Defaults to primary color if NULL

away_col

Color of away team for chart. Defaults to primary color if NULL

home_team

Home team. Defaults to ESPN PBP Name

away_team

Away team. Defaults to ESPN PBP Name

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 March 28, 2024, 6:54 a.m.