ggfootball: Plotting Football Matches Expected Goals (xG) Stats with 'Understat' Data

Scrapes football match 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.

Getting started

Package details

AuthorAymen Nasri [aut, cre, cph]
MaintainerAymen Nasri <aymennasrii@proton.me>
LicenseGPL (>= 3)
Version0.2.2
URL https://aymennasri.github.io/ggfootball/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("ggfootball")

Try the ggfootball package in your browser

Any scripts or data that you put into this service are public.

ggfootball documentation built on Jan. 23, 2026, 5:07 p.m.