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.
| Version: |
0.2.1 |
| Depends: |
R (≥ 4.1.0) |
| Imports: |
base64enc, dplyr (≥ 1.0.0), gdtools, gfonts, ggiraph, ggplot2, ggsoccer, glue, highcharter, rvest, stringi, stringr, jsonlite, readr, tibble |
| Published: |
2025-03-22 |
| DOI: |
10.32614/CRAN.package.ggfootball |
| Author: |
Aymen Nasri [aut, cre, cph] |
| Maintainer: |
Aymen Nasri <aymennasrii at proton.me> |
| BugReports: |
https://github.com/aymennasri/ggfootball/issues |
| License: |
GPL (≥ 3) |
| URL: |
http://aymennasri.me/ggfootball/ |
| NeedsCompilation: |
no |
| Materials: |
README, NEWS |
| In views: |
SportsAnalytics |
| CRAN checks: |
ggfootball results |
Documentation:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=ggfootball
to link to this page.