xg_map | R Documentation |
Plot shots xG of a football match
xg_map(match_id, title = "")
match_id |
Desired match ID from understat.com |
title |
Plot title; empty by default |
Interactive ggiraph transparent plot displaying both teams shots side by side printed to the Viewer.
xg_map(26631, title = "xG Map")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.