slider.split.plot.ts: interactive splitting of time series

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/slider.split.plot.ts.R

Description

slider.split.plot.ts plots linear fitted lines or summary statistics in sections of a time series. The sections are controlled by sliders.

Usage

1

Arguments

x

time series or vector

type

plotting type: type will be forwarded to function plot

...

additional graphics parameters

Details

slider.split.plot.ts draws a time series plot and let you define sections of the series by fixing a limit on the time scale as well as a window width. The whole range of the series is partitioned in pieces of the same length in a way that the fixed limit will be one of the section limits. Then linear models are fitted and plotted in the sections. Alternatively – by pressing the button fivenum summary – summary statistics are drawn instead of the model lines.

The first slider fixes the width of the sections and the second one the limit between two of them.

By clicking on button linear model or fivenum summary the user switches between drawing model curves and five number summary.

Value

a message about the usage

Author(s)

Hans Peter Wolf

See Also

plot

Examples

1
2
3
4
5
## Not run: 
## This example cannot be run by examples() but should be work in an interactive R session
  slider.split.plot.ts(as.vector(sunspots)[1:100])

## End(Not run)

aplpack documentation built on Sept. 30, 2021, 5:08 p.m.