slider.split.plot.ts {aplpack} | R Documentation |
slider.split.plot.ts
plots linear fitted lines or
summary statistics in sections of a time series.
The sections are controlled by sliders.
slider.split.plot.ts(x, type="l", ...)
x |
time series or vector |
type |
plotting type: |
... |
additional graphics parameters |
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.
a message about the usage
Hans Peter Wolf
## 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)