Skip to contents

Generic functions for tidycpt objects

Usage

# S3 method for class 'tidycpt'
as.ts(x, ...)

# S3 method for class 'tidycpt'
augment(x, ...)

# S3 method for class 'tidycpt'
tidy(x, ...)

# S3 method for class 'tidycpt'
glance(x, ...)

# S3 method for class 'tidycpt'
plot(x, use_time_index = FALSE, ...)

# S3 method for class 'tidycpt'
print(x, ...)

Arguments

x

An tidycpt object, typically the output from segment()`

...

arguments passed to methods

use_time_index

Should the x-axis labels be the time indices? Or the time labels?

Examples

plot(segment(CET, method = "pelt"))

plot(segment(CET, method = "pelt"), use_time_index = TRUE)
#> Scale for x is already present.
#> Adding another scale for x, which will replace the existing scale.