kplot: The K-Plot for the Binomial Process

Description Usage Arguments Examples

View source: R/snb_dist.r

Description

Visualize the stopped Bernoulli process with a horizontal step axis and a vertical axis counting the number of successes.

Usage

1
kplot(flips, s, t, bw = FALSE)

Arguments

flips

the sequence of coin flips (1's and 0's) to visualize.

s

the top barrier for the Bernoulli process.

t

the right barrier for the Bernoulli process.

bw

should the plot be in black and white?

Examples

1
2
flips = c(0, 0, 1)
kplot(flips, 2, 3)

kaneplusplus/snb documentation built on May 20, 2019, 7:20 a.m.