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

xg_map(26631, title = "xG Map")

ggfootball documentation built on April 12, 2025, 2:09 a.m.