plot.segments.ts: Plot time-series segments

View source: R/ts.R

plot.segments.tsR Documentation

Plot time-series segments

Description

Shows how the mean level of a time-series varies between segments.

Usage

## S3 method for class 'segments.ts'
plot(x, b, lwd = 2, ...)

Arguments

x

a numeric vector or ts object

b

a numeric vector of break times

Value

Plots the time series as a line, then draws a blue horizontal line through each segment, at the mean value of the segment.

Author(s)

Tom Minka

See Also

break.ts, plot_breaks


paulemms/datamining documentation built on March 1, 2023, 4:01 p.m.