Learn R Programming

ggfootball (version 0.3.0)

xg_map: Plot shots xG of a football match

Description

Plot shots xG of a football match

Usage

xg_map(match_id, title = "")

Value

Interactive ggiraph transparent plot displaying both teams shots side by side printed to the Viewer.

Arguments

match_id

Desired match ID from understat.com

title

Plot title; empty by default

Examples

Run this code
if (FALSE) {
xg_map(26631, title = "xG Map")
}

Run the code above in your browser using DataLab