Skip to content

pavibear/football-analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

football-analytics

The following plots can be generated for all matches in the StatsBomb Open Data repository by adjusting the match_id variable in the source files. Where deviating from the 105mx68m standard dimensions, pitch_length and pitch_width variables have to be adjusted for correct representation.

XG shot plot (in r/python)

Does not include penalties and own goals
r_xg_shot_plot_3788750

Pass clusters (in r)

Adjustment of nr_clusters might be required depending on the number of total passes
Careful: the starting configuration for the clusters depends on the random seed, repeated runs create different plots
r_pass_clusters_3788750

Passing network (in r)

Adjustments of pass_pair_threshold and player_threshold might be required for better overview
Default player position is the average of all passing and receiving positions for each player
r_passing_network_3788750

Possession chains (in r)

Requires a selection of possession ids in the possession_selection list variable (e.g. 6 and 119 in this plot)
r_possession_chains_3788750

Passes before attempt (in r)

Adjustment of binwidth might be required depending on the number of total pass sequences
r_passes_before_attempt_3788750

Releases

No releases published

Packages

No packages published