/xg_plot

Use data collected from openfootball.club to create an xG step plot.

Primary LanguageJupyter Notebook

Use data collected from Peter McKeever's openfootball.club (See the shot_map repository for directions on how to use openfootball.club to collect data) to create an xG plot.

xG plots or "race plots" show each team's cumulative xG at every minute of the match. For example, you can see that at the 50 minute mark, UD had accumulated roughly 2 expected goals while CC had accumulated a little less than 1 xG.

What I use these for:

  • Breaking down a team's offensive production over time.
  • Showing our players periods of time during the game where we performed well or poorly.
  • Opposition analysis. For example in this plot, Colorado College had 1 shot (0.10 xg) between the 30' and 65' so a coach could focus on those 35 minutes of the game and see what defensive tactics are effective against CC.