Plots a single frame from a Plinko board animation.

# S3 method for plinko_board
autoplot(
  object,
  ...,
  frame = NULL,
  show_paths = TRUE,
  show_dist = TRUE,
  show_target_dist = TRUE
)

Arguments

object

A plinko_board() object

...

other arguments passed to specific methods

frame

Which frame to plot (an integer). If NULL (the default), plots the final frame (i.e. all the balls in their final positions).

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 plinko_board() objects constructed from a distributional object (like dist_normal(), etc), should an overlay of the target distribution for this Plinko board be shown?