User defined probability of a head; e.g. for a fair coin p.head = 0.5.
interval
The time between animation frames, in seconds.
show.coin
Logical if show.coin=TRUE shows a second plot with coin flip results (head or tail).
...
Additional arguments from link{plot}.
Value
Id show.coin=TRUE, returns two plots configured as a single graphical object. The first plot shows convergence in estimated P(Head), i.e. number of heads/number of trials, as the number of trials grows large. The second shows individual outcomes of coin flips.