Description Usage Arguments Examples

`quincunx`

simulates balls dropping down a
pegboard with a 50% chance of bouncing right or left at each
level. The balls accumulate in bins. If enough balls are dropped,
the distribution approaches normality. This device is called a
quincunx. See http://www.mathsisfun.com/data/quincunx.html

1 2 |

`n` |
Integer The number of peg levels, default is 3 |

`numballs` |
Integer The number of balls dropped, default is 20 |

`delay` |
Numeric Number of seconds between ball drops. Set
delay > 0 to see animation with |

`probright` |
Numeric The probability the ball bounces to the right; default is 0.5 |

`plottrue` |
Boolean If |

1 2 3 4 5 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.