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

Description Usage Arguments Value Examples

View source: R/sc_layers.R

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

1
sc_layers(x, h = 0.1, breaks)

Arguments

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')

Value

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

Examples

1
sc_layers(DPM_data, h = 0.1, breaks = 2)

maxgav13/GMisc documentation built on Nov. 6, 2018, 2:50 a.m.