| ig_game_cumulative_expected_goals | R Documentation |
ig_game_cumulative_expected_goals() fetches one GameCenter play-by-play,
scores shot attempts with calculate_expected_goals(), and renders a
home/away cumulative xG time series on a 1080-by-566-style PNG canvas.
ig_game_cumulative_expected_goals(game = 2023030417, model = NULL, save = TRUE)
ig_game_cum_xG(game = 2023030417, model = NULL)
game |
integer ID (e.g., 2025020275); see |
model |
deprecated legacy model selector; ignored |
save |
logical; use |
NULL, invisibly
# May take >5s, so skip.
ig_game_cumulative_expected_goals(
game = 2023030417,
save = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.