CutSeason {phenopix} | R Documentation |
Cut time series by visual estimation
Description
This function allows to cut a yearly time series where multiple
cycles are apparent into separated time series. This is done by visual
estimation using locator
function.
Usage
CutSeason(data, plot = FALSE)
Arguments
data |
A data.frame, ideally a yearly time series of daily values. |
plot |
Should a plot be returned? If so different colors for different splits are returned. |
Details
This function allows to split a season of data according to visual
estimation. The required time series is plotted and a call to locator
enables the user to click on the split. A list is returned with a number
of data.frame
s. See locator
for details on how to switch off the
on-screen locator, which depends upon the graphic device. Note that all breaks must
be provided, i.e. at the beginning and end of the sub-seasonal cycle(s).
Value
A list with n data.frame
s, where n is the number of splits
Author(s)
Gianluca Filippa <gian.filippa@gmail.com>