Animate a plinko_board()
object. Follows the syntax for gganimate::animate()
with a few exceptions/additions noted below.
# S3 method for plinko_board animate( plot, fps = 10, renderer = gganimate::gifski_renderer(), device = ragg::agg_png, start_pause = 0, end_pause = 0, width = NULL, height = 800, res = 100, progress = interactive(), show_paths = FALSE, show_dist = FALSE, show_target_dist = FALSE, cores = getOption("cores", 1), ... )
plot | A |
---|---|
fps | The framerate of the animation in frames/sec (default |
renderer | The function used to render the generated frames into an animation.
Gets a vector of paths to images along with the framerate. (default |
device | A device function used to render images. Default |
start_pause, end_pause | Number of times to repeat the first and last
frame in the animation (default is |
width, height | One of either |
res | The resolution of the device. This setting will govern how device dimensions given in inches, centimeters, or millimeters will be converted to pixels. Further, it will be used to scale text sizes and linewidths |
progress | Output progress bar and messages? Default is to only output during interactive sessions. |
show_paths | Should ball paths be shown? |
show_dist | Should an overlay of the binomial distribution for this Plinko board be shown? |
show_target_dist | For |
cores | (experimental) How many cores to use to render animation frames. |
... | Arguments passed on to the device. See |