
Save an X (Twitter) shareable cumulative expected goals (xG) plot
Source:R/Share.R
x_game_cumulative_expected_goals.Rdx_game_cumulative_expected_goals() is the X/Twitter-sized companion to
ig_game_cumulative_expected_goals(). It uses the same xG-scored cumulative
series on a 1200-by-675-style canvas.
Usage
x_game_cumulative_expected_goals(game = 2023030417, model = NULL, save = TRUE)
x_game_cum_xG(game = 2023030417, model = NULL)Arguments
- game
integer ID (e.g., 2025020275); see
games()for reference- model
deprecated legacy model selector; ignored
- save
logical; use
FALSEto draw on the active graphics device during tests or custom workflows