powered by
Simulate a sequence of coin flips.
simFlips(n, prob=.5, show.title=TRUE, show.flips=TRUE, grid="grey90", pause=FALSE, main=NULL, pdf.file=NULL, width=5, height=5, …)
Size of each sample, that is, the number of trials or flips.
Probability of a success on any one trial.
Place a title on the graph that contains the parameter values.
Plot the outcome of each flips.
Color of the grid lines.
Build the graph and the text output confidence interval by confidence interval.
Title of graph.
Name of the pdf file to which graphics are redirected.
Width of the pdf file in inches.
Height of the pdf file in inches.
Other parameter values, possibly invalid.
Generate and plot successive values of a Head or a Tail using standard R rbinom function.
rbinom
# NOT RUN { # 10 flips of a fair coin simFlips(10, .5) # }
Run the code above in your browser using DataLab