Other packages > Find by keyword >

ggfootball  

Plotting Football Matches Expected Goals (xG) Stats with 'Understat' Data
View on CRAN: Click here


Download and install ggfootball package within the R console
Install from CRAN:
install.packages("ggfootball")

Install from Github:
library("remotes")
install_github("cran/ggfootball")

Install by package version:
library("remotes")
install_version("ggfootball", "0.3.0")



Attach the package and use:
library("ggfootball")
Maintained by
Aymen Nasri
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2025-01-30
Latest Update: 2025-03-22
Description:
Scrapes shots data from 'Understat' <https://understat.com/> and visualizes it using interactive plots: - A detailed shot map displaying the location, type, and xG value of shots taken by both teams. - An xG timeline chart showing the cumulative xG for each team over time, annotated with the details of scored goals.
How to cite:
Aymen Nasri (2025). ggfootball: Plotting Football Matches Expected Goals (xG) Stats with 'Understat' Data. R package version 0.3.0, https://cran.r-project.org/web/packages/ggfootball. Accessed 21 Aug. 2026.
Previous versions and publish date:
(2026-07-09 07:43), 0.1.0 (2025-01-30 19:40), 0.2.0 (2025-01-31 16:20), 0.2.1 (2025-03-23 00:00), 0.2.2 (2026-01-23 10:40)
Other packages that cited ggfootball R package
View ggfootball citation profile
Other R packages that ggfootball depends, imports, suggests or enhances
Complete documentation for ggfootball
Functions, R codes and Examples using the ggfootball R package
Full ggfootball package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
artfima  
ARTFIMA Model Estimation
Fit and simulate ARTFIMA. Theoretical autocovariance function and spectral density function for stat ...
Download / Learn more Package Citations See dependency  
preputils  
Utilities for Preparation of Data Analysis
Miscellaneous small utilities are provided to mitigate issues with messy, inconsistent or high dimen ...
Download / Learn more Package Citations See dependency  
potential  
Implementation of the Potential Model
Provides functions to compute the potential model as defined by Stewart (1941) ...
Download / Learn more Package Citations See dependency  

28,332

R Packages

239,283

Dependencies

75,034

Author Associations

28,333

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA