## S3 method for class 'ts':
phenoPhase(x, mon.range = c(1, 12))## S3 method for class 'zoo':
phenoPhase(x, mon.range = c(1, 12), out = c('date', 'doy', 'julian'))
out.phenoPhase gives three measures of the phasing of a seasonal cycle: the time of the maximum (Cloern and Jassby 2008), the fulcrum or center of gravity, and the weighted mean month (Colebrook 1979). The latter has sometimes been referred to in the literature as These measures can be restricted to a subset of the year by giving the desired range of month numbers. This can be useful for isolating measures of, say, the spring and autumn phytoplankton blooms in temperate waters. In the case of a monthly time series, a non-missing value is required for every month or the result will be NA, so using a period shorter than one year can also help avoid any months that are typically not covered by the sampling program. Similarly, in the case of dated observations, a shorter period can help avoid times of sparse data.
The measures are annum-centric, i.e., they reflect the use of calendar year as the annum, which may not be appropriate for cases in which important features occur in winter and span two calendar years. Such cases can be handled by lagging the time series by an appropriate number of months, or by subtracting an appropriate number of days from the individual dates.
tsMake can be used to produce "ts" and "zoo" objects suitable as arguments to this function.
Colebrook, J.M. (1979) Continuous plankton records - seasonal cycles of phytoplankton and copepods in the North Atlantic ocean and the North Sea. Marine Biology 51, 23--32.
phenoAmp, tsMakey <- sfbayChla[, 's27']
phenoPhase(y)
p1 <- phenoPhase(y, c(1, 6))
p1
apply(p1, 2, sd, na.rm=TRUE) # max.mon > fulcrum > mean.wtRun the code above in your browser using DataLab