cp_layers: Plots a layered model and summarizes the statistics for each...

View source: R/cp_layers.R

cp_layersR Documentation

Plots a layered model and summarizes the statistics for each layer from a Changepoint result

Description

Given a number of breakpoints, plots a layered model of one variable against distance, plots the confidence intervals for each layer, and gives a summary table.

Usage

cp_layers(x, breaks, conf.level = 0.95)

Arguments

x

The resulting object from cp_aic_eta()

breaks

An integer giving the number of breakpoints to use (from 'Changepoint')

conf.level

Confidence level to use for plot and summary statistics (Default is 0.95)

Value

A ggplot and plotly objects showing the layered model, another showing the confidence intervals, and a summary table

Examples

cp = cp_aic_eta(DPM_data, m = 10, nl = 3)
cp_layers(cp, breaks = 2)


maxgav13/GMisc documentation built on June 12, 2022, 3:48 a.m.