sc_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.
sc_layers(x, h = 0.1, breaks, conf.level = 0.95)
x |
A data frame containing the location variable (depth or distance) in the first column, and the value of interest in the second column |
h |
Percent of data points per layer |
breaks |
An integer giving the number of breakpoints to use (from 'Strucchange') |
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
sc_layers(DPM_data, h = 0.1, breaks = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.