format_playoff_odds: Format Playoff Odds

View source: R/graphics.R

format_playoff_oddsR Documentation

Format Playoff Odds

Description

Takes a playoff odds table and returns a gt table

Usage

format_playoff_odds(
  playoff_odds,
  caption_text = "",
  trim = TRUE,
  trimcup = FALSE
)

Arguments

playoff_odds

a playoff odds data frame with columns Team, Make_Playoffs, Win_First_Round, Win_Second_Round, Win_Conference, Win_Cup

caption_text

Additional text to prepend to " Playoff Odds" in table title. E.g. 'Eastern Conference' if only eastteams sent in.

trim

Whether to drop teams that have 0 chance of making playoffs. Default true

trimcup

Whether to drorp teams that have 0 chance of winning cup. Default false

Value

a gt table


pbulsink/HockeyModel documentation built on Dec. 16, 2024, 8:03 a.m.