Learn R Programming

aplpack (version 1.3.0)

slider.split.plot.ts: 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

Value

a message about the usage

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.

See Also

plot

Examples

Run this code
# 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])
# }

Run the code above in your browser using DataLab