interactiveFX: Use rgl to visualize PITCHf/x

Description Usage Arguments Value Examples

Description

Three-dimensional plot of pitch trajectories.

Usage

1
2
interactiveFX(data, spheres = TRUE, color = "pitch_types", avg.by,
  interval = 0.01, alpha = 1, show.legend = TRUE, ...)

Arguments

data

data.frame with appropriately named PITCHf/x variables

spheres

Use rgl::spheres3d or rgl::plot3d?

color

variable used to control coloring scheme.

avg.by

variable used as an index for averaging over PITCHf/x parameters

interval

the amount of time between 'snapshots'

alpha

color transparency

show.legend

print coloring legend in R console?

...

other param passed onto rgl::spheres3d or rgl::plot3d

Value

rgl object is returned.

Examples

1
2
3
4
5
6
7
data(pitches)
Rivera <- subset(pitches, pitcher_name=="Mariano Rivera")
## Not run: 
 interactiveFX(Rivera, interval=.05)
 interactiveFX(Rivera, avg.by="pitch_types")
 
## End(Not run)


Search within the pitchRx package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.