Description Usage Arguments Value Examples

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.

1 | ```
sc_layers(x, h = 0.1, breaks)
``` |

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

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

1 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.