seasplot: Seasonal plots

Description Usage Arguments Value Author(s) Examples

View source: R/seasplot.R

Description

Seasonal plots and crude trend/season tests.

Usage

1
2
3
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"),
         cma=NULL,labels=NULL,...)

Arguments

y

Vector of target data, can be ts object.

m

Seasonal period. If y is a ts object then the default is its frequency.

s

Starting period in the season. If y is a ts object then default is read.

trend

If TRUE then a trend is assumed and is removed using CMA. If FALSE then no trend is assumed. If NULL then trend is identified and removed if found.

colour

Single colour override for plots.

alpha

Significance level for statistical tests (Cox-Stuart and Friedman).

outplot

Provide plot output: 0 - None; 1 - Seasonal diagramme; 2 - Seasonal boxplots; 3 - Seasonal subseries; 4 - Seasonal distribution; 5 - Seasonal density.

decomposition

Type of seasonal decomposition: "multiplicative" or "additive".

cma

Input precalculated level/trend for the analysis. Overrides trend=NULL.

labels

External labels for the seasonal periods. Use NULL for default. If length(labels) < m, then this input is ignored.

...

Additional arguments can be passed to plotting functions. For example use main="" to replace the title.

Value

season

Matrix of (detrended) seasonal elements.

season.exist

TRUE/FALSE results of friedman test.

season.pval

Friedman test p-value.

trend

CMA estimate or NULL if trend == FALSE.

trend.exist

TRUE/FALSE result of Cox-Stuart test.

trend.pval

Cox-Stuart p-value.

Author(s)

Nikolaos Kourentzes

Examples

1

trnnick/TStools documentation built on Oct. 30, 2018, 9:26 p.m.