plot.blockcpd: Plot for blockcpd object

View source: R/plot.R

plot.blockcpdR Documentation

Plot for blockcpd object

Description

Plots the selected parameters in a blocked fashion.

Usage

## S3 method for class 'blockcpd'
plot(
  x,
  ...,
  parameter = NULL,
  index_values = NULL,
  index_variable_name = "Index",
  pkg = "base"
)

Arguments

x

A fitted blockcpd S3 object provided by the fit_blockcpd function.

...

Other parameters

parameter

The parameter of the family for which to plot the blocked

index_values

A numerical vector of size ncol that contains the values of the the variable corresponding to the change points. For example, if your segmented variable corresponds to a time samples from 0 to 150 sampled each 15 seconds, the model treats these as values from 1 to 11. To plot on the variable scale, pass the argument 'index_values = seq(0, 150, 15)'.

index_variable_name

Name of the variable segmented.

pkg

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

Value

No return value.

Examples

plot(fit_blockcpd(c(1,2,3, 4), family = "exponential", lambda = 0))

blockcpd documentation built on Aug. 12, 2022, 5:07 p.m.