
Save an Instagram (IG) share-able cumulative expected goals (xG) time-series plot for a game
Source:R/Share.R
ig_game_cumulative_expected_goals.Rdig_game_cumulative_expected_goals() saves an IG share-able cumulative xG
time-series plot for a given game as a PNG.
Usage
ig_game_cumulative_expected_goals(game = 2023030417, model = 1, save = TRUE)
ig_game_cum_xG(game = 2023030417, model = 1)Arguments
- game
integer ID (e.g., 2025020275); see
games()for reference- model
integer in 1:3 indicating which expected goals model to use (e.g., 1); see
calculate_expected_goals_v1(),calculate_expected_goals_v2(), and/orcalculate_expected_goals_v3()for reference- save
logical only FALSE for tests
