Learn R Programming

aplpack (version 1.3.3)

slider.zoom.plot.ts: interactive zooming of time series

Description

This function shows one or two sections of a time series. The window(s) is (are) controlled by sliders.

Usage

slider.zoom.plot.ts(x, n.windows, ...)

Arguments

x

time series

n.windows

if(n.windows>1 two sections are defined

additional graphical parameters

Value

a message about the usage

Details

slider.zoom.plot.ts plots the original time series and it lets you select one or two sections of the series by fixing the width(s) and the starting point(s) of the region(s). Then the section(s) of the series is (are) plotted separately one below the other.

The first slider defines the width of the section(s). The second (third) one sets the start of the first (second) section.

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.zoom.plot.ts(co2,2)
# }

Run the code above in your browser using DataLab