zplot: The Z-Plot for the Stopped Negative Binomial Process

Description Usage Arguments Examples

View source: R/snb.r

Description

Visualize the Stopped Negative Binomial process with horizontal axis counting successes and vertical axis counting failure.

Usage

1
2
zplot(flips, s, t, show_arrows = TRUE, unif_jitter = 0.2, xlab = NULL,
  ylab = NULL)

Arguments

flips

the sequence of coin flips (1's and 0's) to visualize. Note that this can be a list in which case multiple processes will be shown.

s

the top barrier for the Bernoulli process.

t

the right barrier for the Bernoulli process.

show_arrows

should arrows be shown in the Bernoullis process path?

unif_jitter

for multiple flip paths, how much jitter to add (default is 0.2).

xlab

the name of the x axis.

ylab

the name of the y axis.

Examples

1
2
flips <- c(0, 0, 1)
zplot(flips, 2, 3)

kaneplusplus/curtail documentation built on May 24, 2019, 2:04 a.m.