Learn R Programming

breakfast (version 2.5)

plot.breakfast.cpts: Change-points estimated by the "breakfast" routine

Description

Plot method for objects of class breakfast.cpts

Usage

# S3 method for breakfast.cpts
plot(x, display.data = TRUE, ...)

Arguments

x

a breakfast.cpts object

display.data

if display.data = TRUE, change-point estimators are plotted against the data by method. If display.data = FALSE, only the estimators are plotted; this option is recommended when length(x) is large.

...

current not in use

Examples

Run this code
f <- rep(rep(c(0, 1), each = 50), 5)
x <- f + rnorm(length(f)) * .5
plot(breakfast(x, solution.path = 'all', model.selection = 'all'), display.data = TRUE)
plot(breakfast(x), display.data = FALSE)

Run the code above in your browser using DataLab