kplot: The K-Plot for the Stopped Negative Binomial Process

Description Usage Arguments Examples

View source: R/snb.r

Description

Visualize the Stopped Negative Binomial 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/curtail documentation built on May 24, 2019, 2:04 a.m.