Nothing
It’s Football not Soccer.
The ggfootball package provides R functions that scrape shots data from understat and visualizes it using interactive plots:
You can install ggfootball from CRAN with:
install.packages("ggfootball")
library(ggfootball)
# xG chart
xg_chart(match_id = 26631,
home_team_color = "red",
away_team_color = "grey",
competition = "Premier League",
bg_color = "#FFF1E5",
plot_bg_color = "#FFF1E5")
# Shot/xG map
xg_map(match_id = 26631, title = "xG Map")
Ewen Henderson for his amazing {understatr} package which I used to extract data.
Guangchuang YU for his {hexSticker} package which I used to create the logo for this package.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.