Learn R Programming

blockcpd (version 1.0.0)

plot.blockcpd: Plot for blockcpd object

Description

Plots the selected parameters in a blocked fashion.

Usage

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

Value

No return value.

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".

Examples

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

Run the code above in your browser using DataLab