# a coin would stand on the table?? just kidding :)
flip.coin(faces = c("Head", "Stand", "Tail"), interval = 0.2,
nmax = 50, type = "n", prob = c(0.45, 0.1, 0.45), col =c(1, 2, 4))
# HTML animation page
ani.start()
flip.coin(saveANI = TRUE, interval = 0.1, nmax = 30, bg = "yellow",
width = 600, height = 500)
ani.stop()
Run the code above in your browser using DataLab