Rdocumentation
powered by
Learn R Programming
pitchRx (version 1.8.2)
getSnapshots: 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