getSnapshots: Produce time sequenced pitch locations from PITCHf/x...

View source: R/getSnapshots.R

getSnapshotsR Documentation

Produce time sequenced pitch locations from PITCHf/x parameters

Description

This function generates the x, y and z locations used in animateFX and interactiveFX.

Usage

getSnapshots(data, interval = 0.01)

Arguments

data

The nine PITCHf/x parameters used to determine the location of a pitch at a given time.

interval

the amount of time between 'snapshots'

Value

Return a three dimensional array. The third dimension corresponds to different 'snapshots' of locations.

References

http://baseball.physics.illinois.edu/KaganPitchfx.pdf


cpsievert/pitchRx documentation built on Aug. 19, 2023, 10:02 p.m.