flip_y: Flip y values

Description Usage Arguments

View source: R/helpers.R

Description

Cyanide's way of recording y values produces a mirror image of what is displayed on the pitch. This function mirrors y values around the pitch midpoint (7) to produce plots that look like what the CabalVision replay looks like

Usage

1
flip_y(y_vals)

Arguments

y_vals

integers to flip.


nufflytics/nufflytics documentation built on Oct. 10, 2020, 5:27 p.m.