slider.split.plot.ts {aplpack}R Documentation

interactive splitting of time series

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

  slider.split.plot.ts(x, type="l", ...)

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

## 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)

[Package aplpack version 1.3.3 Index]