MeanSeasonalCycle: Calculate the mean seasonal cycle of a time series

Description Usage Arguments Value Author(s) See Also Examples

Description

The function calculates the mean seasonal cycle of a time series.

Usage

1

Arguments

ts

univariate time series of class ts

Value

Mean seasonal cycle of time series ts with the same length as ts, i.e. the mean seasonal cycle is repeated for each year. The mean seasonal cycle is centered to 0.

Author(s)

Matthias Forkel <matthias.forkel@tu-dresden.de> [aut, cre]

See Also

Decompose, TrendSeasonalAdjusted

Examples

1
2
3
4
5
6
7
ndvi.cycle <- MeanSeasonalCycle(ndvi)
plot(ndvi.cycle)

# the mean seasonal cycle is centered to 0, 
# add the mean of the time series if you want to overlay it with the original data:
plot(ndvi)
lines(ndvi.cycle + mean(ndvi, na.rm=TRUE), col="blue")

greenbrown documentation built on Dec. 18, 2020, 3:02 p.m.