To complement my R tutorials on YouTube, this repository contains the R markdown files that contain the scripts I used to produce the visualizations in the videos. Those can be found here: https://www.youtube.com/playlist?list=PL10a1_q15Hwr4H5dCXQD3htK5VGfwjrgq.
The tutorials included are:
- NBA and NCAA basketball shot charts utilizing the NBA API and ncaahoopR package.
- Using rvest to scrape baksetball-reference.com and fbref.com and then visualizing relationships using scatter plots.
- Creating NBA shot and Soccer pass heatmaps using nbastatR and StatsBombR packages.
- Creating NBA and Soccer/Football poalr/pizza charts.
- Plotting basketball and soccer shot charts from manually created event data
- The tutorial shows how to create basketball and soccer shot charts using the sporty R package and plotting tools from @nguyenank_ and @Torvaney. This can be a great tool for coaches from either sport and at any age level by allowing you to create your own historical database and also by creating high-level visuals!