plot.frv: Plot for graphical selection of the constant

View source: R/plot.R

plot.frvR Documentation

Plot for graphical selection of the constant

Description

Plots the output of a frv object. It shows how the number of change-points estimated by the given model vary with the regularization constant lambda. Graphical inspection can be used to choose a proper value for the constant. The suggestion is to pick a value in which the curve starts to "flat-out"

Usage

## S3 method for class 'frv'
plot(x, ..., pkg = "base")

Arguments

x

An object returned from the function select_frv

...

Other parameters

pkg

Graphical package to be used for plotting. Current values are "base".

Value

No return value.

Examples

td = rcpd(nrow = 10, ncol = 10)
frv = select_frv(td$data_matrix)
plot(frv)

Lucas-Prates/blockcpd documentation built on Aug. 19, 2022, 12:55 a.m.