View source: R/Module_Sub_boot_stl.R
| seasplot | R Documentation |
Construct seasonal plots of various styles for a given time series. The series can automatically detrended as needed.
seasplot(
y,
m = NULL,
s = NULL,
trend = NULL,
colour = NULL,
alpha = 0.05,
outplot = c(1, 0, 2, 3, 4, 5),
decomposition = c("multiplicative", "additive", "auto"),
cma = NULL,
labels = NULL,
...
)
y |
input time series. Can be |
m |
seasonal period. If |
s |
starting period in the season. If |
trend |
if |
colour |
single colour override for plots. |
alpha |
significance level for statistical tests. |
outplot |
type of seasonal plot
|
decomposition |
type of seasonal decomposition. This can be
|
cma |
input precalculated level/trend for the analysis. This overrides
|
labels |
external labels for the seasonal periods. Use |
... |
additional arguments passed to plotting functions. For example,
use |
An object of class seasexpl containing:
season: matrix of (detrended) seasonal elements.
season.exist: TRUE/FALSE results of
seasonality test.
season.pval: p-value of seasonality test
(Friedman test).
trend: CMA estimate (using
cmav) or NULL if trend=FALSE.
trend.exist: TRUE/FALSE results of trend
test.
trend.pval: p-value of trend test (Cox-Stuart).
decomposition: type of decomposition used.
Nikolaos Kourentzes, nikolaos@kourentzes.com.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.