| .share_xg_scale | R Documentation |
.share_xg_scale() caps xG at the 98th percentile of positive attempts and
returns colors plus legend labels on a log-like scale.
.share_xg_scale(xg)
xg |
numeric expected-goals vector |
named list of color and legend metadata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.