plotDiagnostic-BinSeg-method: Plot a diagnostic of the models

Description Usage Arguments Value See Also

Description

This method creates a graph of the overall cost at each changepoint model up to the selected number of changepoints. It allows to determine how many changepoints to consider and to visualize the cost decrease that each new segment brings.

Usage

1
2
## S4 method for signature 'BinSeg'
plotDiagnostic(object, ncpts = seq_len(nrow(object@models_summary)))

Arguments

object

A valid BinSeg object

ncpts

The number of changepoints to consider (Default is whole model)

Value

A ggplot with the graph of the costs.

See Also

plot For a graph of the changepoints on top of the data.


diego-urgell/BinSeg documentation built on Dec. 19, 2021, 11:11 p.m.