Description Usage Arguments Details Value Examples
Pitch trajectories animated on a two-dimensional plot.
1 2 3 |
data |
data frame with appropriately named PITCHf/x variables |
layers |
list of ggplot2 layer modifications. |
color |
character. plot point color. |
point.alpha |
ggplot2 alpha parameter |
x_lim |
vector(2 element). x axis range. |
y_lim |
vector(2 element). y axis range. |
movie.name |
gif image name |
... |
using in saveGIF |
interval |
time (in seconds) between plotting the pitch locations. |
animateFX
plots a series of "snapshots" that represent pitch trajectories
from the point of release until all of them reach home plate.
The graphic takes on the viewpoint of the umpire; that is, the pitches are getting closer
to the viewer with time. This is relected with the increase in size of the "balls" as the
animation progresses.
Returns a series of objects of the class used by package ggplot2 to represent plots.
1 2 3 4 | ## Not run:
animateFX(pitches, interval = 1.0, ani.height = 600, ani.width = 1200)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.