Since I wrote this first post back in 2019, a few things have changed with how our capture the data from the StatsBomb open data sets. So this post, is mostly unchanged, but the code itself is different and will work with newer versions of R, namely 4+.
Following on from last weeks post on plotting passes, I thought it might be fun to plot the shots and locations of players using the shot freeze frame in StatsBomb data.
For this tutorial I am going to show you how to plot all the passes from a match on a pitch. We are going to go through this in a few steps and add some detail as we go.