Learn R Programming

MultipleBreakpoints (version 0.1.0)

plot.mBP: Plotting the Results of the multiple_breakpoints function

Description

Plotting the empirical processes, the success probabilities and breakpoints estimated by the multiple_breakpoints function

Usage

# S3 method for mBP
plot(x, ask=TRUE, ...)

Arguments

x

The result of a call to multiple_breakpoints

ask

logical value. If TRUE (and the R session is interactive) the user is asked for input, before a new figure is drawn (see devAskNewPage).

...

Further arguments are currently ignored. Only for compatibility with generic functions.

References

froelichMultipleBreakpoints

Examples

Run this code
# NOT RUN {
mBP <- multiple_breakpoints(matrix(c(sort(rnorm(2000)),
                            rbinom(1000, 1, 0.2),
                            rbinom(1000, 1, 0.6)), ncol = 2))
plot(mBP)
# }

Run the code above in your browser using DataLab