R/cp_layers.R
cp_layers.Rd
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.
cp_layers(x, breaks, conf.level = 0.95)
x | The resulting object from |
---|---|
breaks | An integer giving the number of breakpoints to use (from 'Changepoint') |
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
#> $LayersGG#> #> $LayersLY #> #> $StatsGG#> #> $StatsLY #> #> $Summary #> Layers Obs Mean SD Min Max CI.lwr CI.upr MoE #> 1 [0,2.7] 28 4.96 2.190 0 10 4.12 5.81 0.849 #> 2 (2.7,8.7] 60 8.08 1.150 6 11 7.79 8.38 0.297 #> 3 (8.7,10] 13 10.70 0.855 10 12 10.20 11.20 0.517 #> #> $ES #> [1] 0.606 #>