powered by
ig_game_shot_locations() saves an IG share-able shot location plot for a given game.
ig_game_shot_locations()
game
ig_game_shot_locations( game = 2023030417, team = "home", model = 1, save = TRUE )ig_game_shot_locs(game = 2023030417, team = "home", model = 1)
ig_game_shot_locs(game = 2023030417, team = "home", model = 1)
NULL
integer ID (e.g., 2025020275); see games() for reference
games()
character of 'h'/'home' or 'a'/'away'
integer in 1:4 indicating which expected goals model to use; see web documentation for what variables each version considers
logical only FALSE for tests
# May take >5s, so skip. ig_game_shot_locations( game = 2023030417, model = 1, team = 'H', save = FALSE )
Run the code above in your browser using DataLab