PhenoTrs: A fitting function

Description Usage Arguments Examples

View source: R/PhenoTrs.R

Description

See PhenoTrs from package greenbrown for details.

Usage

1
2
PhenoTrs(x, approach = c("White", "Trs"), trs = 0.5, min.mean = 0.1, 
  formula = NULL, uncert = FALSE, params = NULL, breaks, ...)

Arguments

x

seasonal cycle of one year

approach

approach to be used to calculate phenology metrics. 'White' (White et al. 1997) or 'Trs' for simple threshold.

trs

threshold to be used for approach "Trs"

min.mean

minimum mean annual value in order to calculate phenology metrics. Use this threshold to suppress the calculation of metrics in grid cells with low average values

formula

Returned from previous steps of the process

uncert

Currently unused

params

Returned from previous steps of the process

breaks

Currently unused

...

further arguments (currently not used)

Examples

1
2
3
4
5
6
data(bartlett2009.fitted)
trs.phenophases <- PhenoTrs(
  x=bartlett2009.fitted$fit$predicted, 
  fit=bartlett2009.fitted$fit)
plot(bartlett2009.fitted$fit$predicted)
abline(v=trs.phenophases[c(1:2,4)], col=palette())

phenopix documentation built on May 2, 2019, 4:50 p.m.