Skip to content

ggfootball

0.3.0

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

0packages depend
2.8Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.3.0
  • **BREAKING CHANGE**: Migrated Understat scraper from HTML parsing to AJAX API calls. This changes the internal data structure and column names returned by get_match_shots().
  • Added gzip decompression handling for compressed responses.
  • Added input validation for match_id parameter.
  • Fixed type conversion issues for numeric columns (minute, xG, goals, etc.).
  • Improved error handling with clearer messages.
  • Removed unused dependencies: rvest, stringi, stringr, readr.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.1 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.3.0
READMEYes · 136 wordsVignettesNoNEWSYes · 100% structured · mentions 0.3.0Citation fileNoWebsiteYes · pkgdown
Help pages
2
Examples that run
0%2 never run
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

2.8K
CRAN downloads in the past year
Rank #17,213 · ~8/day · ~231/mo
Daily download trend is not available in this view yet.
31030 days
72090 days
2.8K1 year
Compare downloads with other packages →
Also on85 r2u5 autocran

Repository

1Stars
0Forks
0Open issues
0Open PRs
5Releases
39Commits
2Commit identities
footballfootball-analyticsfootball-datafootball-scoresrrpackagecranr-package
License file reads as GPL-3.0 · 39 commits · Last activity 2026-01-23
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
0
Median days to close, 50 most recently updated closed PRs
not measured

Stars over time

2025-01-31 · 12026-07-07 · 1
PracticesBeta

7 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/aymennasri/ggfootball on 2026-10-11.

Continuous integration (1)
GitHub Actions
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-01-23 · The repository has a site deploy workflow

CRAN release process (2)
cran-comments.mdrevdep/
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)

Installing ggfootball adds 93 packages (51 with compiled code, 85 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 0.1.0 (2025), Copyright holder
Releases (5)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • unarchivedReturned to CRAN
    2026-01-23
  • 0.3.0Latest
    record
    2026-01-23 · current release · diff ↗
  • 0.2.2
    record
    2026-01-23 · diff ↗
  • archivedRemoved from CRAN
    2026-01-15
    policy violation On Internet access
  • R
    R 4.5.0 released · 2025-04-11
  • 0.2.1
    record
    2025-03-23 · diff ↗
  • 0.2.0
    record
    2025-01-31 · diff ↗
  • 0.1.0
    record
    2025-01-30
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2025-01-30
Total releases
5 / 1 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 4.1.0
Download size
72 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("ggfootball")
Nasri, A. (2026). ggfootball: Plotting Football Matches Expected Goals (xG) Stats with 'Understat' Data (Version 0.3.0) [Computer software]. https://doi.org/10.32614/CRAN.package.ggfootball

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for ggfootball version 0.3.0 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy