cp_layers | R Documentation |
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.
cp_layers(x, breaks, conf.level = 0.95)
x |
The resulting object from |
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) |
A ggplot and plotly objects showing the layered model, another showing the confidence intervals, and a summary table
cp = cp_aic_eta(DPM_data, m = 10, nl = 3) cp_layers(cp, breaks = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.