Pizza plots, percentile plots, are a great way to see football / soccer player stats against similar players in the same area, league and compare 2 players. Normally getting the data and setting up the visual can involve many lines of code but with worldfootballr for the data and ggshakeR for the pizza plots, you can easily create them in just a few lines of code and I show you how here.
#rstat #pizzaplots #rstudio #football
▶️ How to download and install R and RStudio
https://youtu.be/GsiTBOyd7ss
🔗 Download R and RTools
https://cran.rstudio.com/
🔗 Download R Studio
https://posit.co/products/open-source/rstudio/
📁 Rscript
https://data.world/deanchereden/football/workspace/file?filename=Pizza+Plots+-+ggshaker.R
🔗 ggshakeR documentation
https://abhiamishra.github.io/ggshakeR/articles/Guide_to_PizzaPlots.html
https://abhiamishra.github.io/ggshakeR/reference/plot_pizza.html#arguments
🔗 fbref players link
https://fbref.com/en/players/
▶️ How to get more football data using worldfootballr
https://youtu.be/6ZdgEQbn7vo
🔖c h a p t e r s 🔖
00:00 - Intro
00:47 - Install packages
01:04 - ggshakeR documentation
03:10 - Get player stats for pizza plots
05:34 - Goalkeeper pizza plot
07:09 - Outfield player pizza plot
08:35 - Player comparison pizza plot
11:20 - Player pizza plot based on a season
12:15 - Same player comparison pizza plot
15:49 - Select different stats in pizza plots
19:06 - Save pizza plots as a png
My RStudio Appearance Setup
RStudio theme: Modern
Zoom: 100%
Editor font: Lucida Console
Text rendering: (Default)
Editor font size: 16
Editor theme: Tomorrow Night 80s
To learn how to change your appearance in RStudio here:
https://youtu.be/GsiTBOyd7ss?t=161
Contact and Socials
💌 My email -
[email protected]
🌍 My website - https://www.deanchereden.com
🐦 Twitter - https://twitter.com/deanchereden
Music
🎵 Vhsceral - Gimetime https://chll.to/dd82e17f
🎶 Listen to Chillhop Music -
https://youtu.be/kpO-nyGEBJ4