Description Usage Arguments Details Value Author(s) See Also Examples
Display stl
decomposition (seasonal, trend and irregular
components using loess) with Lattice, like the base graphics function
plot.stl
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
x |
an |
data |
ignored. |
outer, layout, strip, strip.left |
passed to |
as.table, ylab, between, panel, ... |
passed to |
Unless strip.left
is passed in explicitly, a custom strip will
be drawn, where shaded bars are comparable across panels (representing
the same data range).
An object of class "trellis"
. The
update
method can be used to
update components of the object and the
print
method (usually called by
default) will plot it on an appropriate plotting device.
Deepayan Sarkar deepayan.sarkar@r-project.org
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## example from ?stl
xyplot(stl(log(co2), s.window=21),
main = "STL decomposition of CO2 data")
## alternative display
data(biocAccess)
xyplot(stl(ts(biocAccess$counts[1:(24 * 30)], frequency = 24), "periodic"),
strip.left = "strip.default")
resizePanels()
## two different spans
xyplot(stl(nottem, s.window = 4)) +
as.layer(xyplot(stl(nottem, s.window = "periodic")), style = 2)
## components superposed
xyplot(stl(nottem, s.window = 4), superpose=TRUE,
screens = list(data = "trend", trend = "trend", "residuals"),
strip.left = TRUE, layout = c(1,2))
|
Loading required package: lattice
Loading required package: RColorBrewer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.