Learn R Programming

asbio (version 1.9-2)

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

Description

Convergence in probability 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.

Author

Ken Aho

See Also

anm.coin

Examples

Run this code
if (FALSE) {
anm.die()
}

Run the code above in your browser using DataLab