draw_rink() creates a regulation NHL rink that can be extended with
ggplot2 layers. The centered coordinate system matches the coordinate
fields returned by nhlscraper.
Details
The offensive end is on the right for a horizontal rink and at the top for
a vertical rink. Use xCoordNorm and yCoordNorm from
nhlscraper::gc_pbp() when every event should attack toward that end. Raw
play-by-play and replay coordinates remain spatially aligned but retain
their physical direction unless normalized by the caller.
Both orientations use the same layer mappings: map longitudinal coordinates
to x and lateral coordinates to y. On a vertical rink, positive lateral
coordinates appear on the right.


