Learn R Programming

asbio (version 1.0-5)

anm.die: Animated depiction of six-sided die throws.

Description

Convergence in probablity for fair (or loaded) six-sided die.

Usage

anm.die(reps = 300, interval = 0.1, show.die = TRUE, p = c(1/6, 1/6, 1/6, 
1/6, 1/6, 1/6), cl = TRUE)

anm.die.tck()

Arguments

reps
Number of die throws.
interval
Animation interval in frames per second.
show.die
Logical, indicating whether die outcomes should be shown.
p
A vector of length six which sums to one indicating the probability of die outcomes.
cl
Logical, Indicating whether or not color should be used.

See Also

anm.coin

Examples

Run this code
anm.die()

Run the code above in your browser using DataLab