Description Usage Arguments Details Value
View source: R/s5_interpolate_animate.R
Provides a simple animation of a reg_points object.
1 2 | animate_points(reg_points, ani.width = 800, ani.height = 600,
...)
|
reg_points |
An object of class |
ani.width |
Width of the animation in pixels. Passed to
|
ani.height |
Height of the animation in pixels. Passed to
|
This function quickly creates a simple animation of a
reg_points object returned by regular_points().
It uses the package gganimate
to make an animation. The function returns an object of class
gganim, so the user can manipulate the object prior to printing
just as they would manipulate any ggplot with `+`. Printing the
object automatically renders the animation using
animate.
We encourage the user to explore
gganimate for producing their own
custom animations from the interpolated regular points returned by
regular_points(). The source code from this function
could serve as a starting point.
1 2 3 4 5 |
Returns an object of class gganim from package
gganimate.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.