dot-share_xg_scale: Build xG color scaling metadata

.share_xg_scaleR Documentation

Build xG color scaling metadata

Description

.share_xg_scale() caps xG at the 98th percentile of positive attempts and returns colors plus legend labels on a log-like scale.

Usage

.share_xg_scale(xg)

Arguments

xg

numeric expected-goals vector

Value

named list of color and legend metadata


nhlscraper documentation built on June 29, 2026, 1:06 a.m.