Quincunx (Galton box, Bean machine) in R

Yesterday I wrote some R code to simulate the quincunx, and I wrote an R function quincunx() in the animation package. Here is a video:

Yihui Xie /
Published under (CC) BY-NC-SA in categories R language  tagged with Animation  Bean machine  Galton box  quincunx  R Language