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

View source: R/layers_window.R

layers_windowR Documentation

Plots a layered model and summarizes the statistics for each layer

Description

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.

Usage

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

Arguments

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)

Value

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

Examples

layers_window(DPM_data, breaks = c(3.8,8.9))
layers_window(CPTu_data, breaks = c(1.2,3.8,5.1))


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