xg_map: Plot shots xG of a football match

View source: R/xg_map.R

xg_mapR Documentation

Plot shots xG of a football match

Description

Plot shots xG of a football match

Usage

xg_map(match_id, title = "")

Arguments

match_id

Desired match ID from understat.com

title

Plot title; empty by default

Value

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

Examples

## Not run: 
xg_map(26631, title = "xG Map")

## End(Not run)

ggfootball documentation built on Jan. 23, 2026, 5:07 p.m.