Skip to content

aymennasri/ggfootball

Repository files navigation

ggfootball

It’s Football not Soccer.

Lifecycle: experimental

Overview

An R package for plotting understat data; an xG chart and an xG map.

Installation

You can install the development version of ggfootball from GitHub with:

pak::pak("aymennasri/ggfootball")

Example

library(ggfootball)

# xG chart
xg_chart(match_id = 26631, 
         home_team_color = "red", 
         away_team_color = "grey", 
         competition = "Premier League",
         background_color = "#FFF1E5")

# Shot/xG map
xg_map(match_id = 26631, title = "xG Map")

Acknowledgements

About

An R package for plotting understat data; an xG chart and a shot map.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages