Skip to main content

Posts

Showing posts from September, 2020

Shot data for the top 5 European leagues - 2019/2020

Not to sound too nostalgic, but when i first started messing about with football event data I was manually plotting Oxford shot locations and visualising in Tableau. Access to to data was limited, however we currently have more access to data than has ever previously been available. A few resources: - Statsbomb (covered in previous posts) - Canadian Premier League (yet to dive in but a super interesting league and regularly updated data) - Wyscout (top 5 european leagues 2017-2018) - UnderstatR (will use this in this post) This tweet from Sushruta Nandy prompted me to write this. Anyway, the plan: - Load up Tidverse and UnderstatR - Run 2019 team/player data  - Extract 2019 x/y shot locations - Save to .csv Here we go then.... 1) Load in Tidverse and UnderstatR 2) Set the working directory (will need this later when saving the data to .csv - just select the path you wish for the file to be saved to) At this point, you should have something pretty straight forward: Right, lets dig