MeanSeasonalCycle {greenbrown} | R Documentation |
The function calculates the mean seasonal cycle of a time series.
MeanSeasonalCycle(ts)
ts |
univariate time series of class |
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.
Matthias Forkel <matthias.forkel@geo.tuwien.ac.at> [aut, cre]
Decompose
, TrendSeasonalAdjusted
# load a time series of Normalized Difference Vegetation Index data(ndvi) plot(ndvi) 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")