Description Usage Arguments Value Author(s) See Also Examples

Make a Seasonal Decomposition of Time Series by Loess per group of pixels

1 | ```
STLperArea(TS, area, outfile = FALSE, Ystart, period = 36, fct = "mean", SGfilter = TRUE, nSG = "5,5", DSG = 0)
``` |

`TS` |
matrix or data.frame containing the time series (one row per time series). |

`area` |
factor which group pixels of the same area together (applying |

`outfile` |
name of the file where the decomposition is saved (extension ".pdf"). |

`Ystart` |
starting year of the analysis (in four-digit format). |

`period` |
number of observations per year. |

`fct` |
function to be applied to group points from the same |

`SGfilter` |
logical value indicating the application of Savitzky-Golay (SG) filter on time series By default SGfilter=TRUE |

`nSG` |
parameters of the windows of the SG filter. |

`DSG` |
parameters of the degree polynome of the SG filter. By default, DSG=0. |

The output of STLperArea is the time series computed (mean/max of the time series grouped by `area`

and with/without Savitzky-Golay filter).

Romain Frelat and Bruno Gerard

1 2 3 4 5 6 7 8 9 10 | ```
#loading the data
data(SLPSAs_full)
#formating the time series
ts = normNDVI(SLPSAs_full$full, SLPSAs_full$maxNDVI)
#STLperArea
signal=STLperArea(ts, area = SLPSAs_full$full$name,
Ystart = SLPSAs_full$Ystart, period = SLPSAs_full$period)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.