seasplot {tsutils} | R Documentation |
Seasonal plots with simplistic trend/season tests
Description
Construct seasonal plots of various styles for a given time series. The series can automatically detrended as needed.
Usage
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,
...
)
Arguments
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 |
Value
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 (usingcmav
) orNULL
iftrend=FALSE
. -
trend.exist
:TRUE
/FALSE
results of trend test. -
trend.pval
: p-value of trend test (Cox-Stuart). -
decomposition
: type of decomposition used.
Author(s)
Nikolaos Kourentzes, nikolaos@kourentzes.com.
Examples
seasplot(referrals,outplot=1)