Skip to content

ggfootball

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

v0.3.0 · Jan 23, 2026 · GPL (>= 3)

Description

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.

Downloads

250

Last 30 days

17764th

786

Last 90 days

2.5K

Last year

Trend: -6.4% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies base64enc dplyr gdtools gfonts ggiraph ggplot2 ggsoccer glue highcharter httr jsonlite tibble ggfootball

Version History

new 0.3.0 Mar 10, 2026
updated 0.2.2 ← 0.2.1 diff Jan 22, 2026
updated 0.3.0 ← 0.2.2 diff Jan 22, 2026
updated 0.2.1 ← 0.2.0 diff Mar 22, 2025
updated 0.2.0 ← 0.1.0 diff Jan 30, 2025
new 0.1.0 Jan 29, 2025