View source: R/layers_window.R
layers_window | R Documentation |
Given a set of breakpoints (depths/distances), plots a layered model of the data against distance, plots the confidence intervals for each layer, and gives a summary table.
layers_window(x, breaks, conf.level = 0.95)
x |
A data frame containing the location variable (depth or distance) in the first column, and the value(s) of interest in the rest of the columns |
breaks |
A vector containing the breakpoints (from 'RI', 'Cohen d' or 'Mahalanobis D2') |
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
layers_window(DPM_data, breaks = c(3.8,8.9)) layers_window(CPTu_data, breaks = c(1.2,3.8,5.1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.