Learn R Programming

blockcpd (version 1.0.0)

plot.frv: 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 frv
plot(x, ..., pkg = "base")

Value

No return value.

Arguments

x

An object returned from the function select_frv

...

Other parameters

pkg

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

Examples

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

Run the code above in your browser using DataLab