PhenoPlot: A plotting function for phenological thresholds

Description Usage Arguments Details Author(s) See Also Examples

View source: R/PhenoPlot.R

Description

This function uses data from a fitted phenological model, the extracted metrics and plots them in an annotated graph.

Usage

1
PhenoPlot(data, metrics, add = FALSE, show.uncert = TRUE, ...)

Arguments

data

Fitted data from a fitting function such as GuFit, SplineFit, KlostermanFit, ElmoreFit, BeckFit

metrics

A named vector or a dataframe, depending on the presence or absence of uncertainty estimation

add

If TRUE the plot is superimposed to an existing one

show.uncert

Should uncertainty be shown as error bars around the extracted thresholds? It requires that data in imput incorporate the uncertainty estimation.

...

Several argument as in plot can be specified here, see example.

Details

This function allows to plot fitting and thresholding on a season of gcc data. Uncertainty can be also shown

Author(s)

Gianluca Filippa <gian.filippa@gmail.com>

See Also

PhenoExtract

Examples

1
2
3
4
data(bartlett2009.fitted)
klosterman.phenophases <- PhenoExtract(bartlett2009.fitted, 
	method='klosterman', uncert=TRUE, plot=FALSE)
PhenoPlot(bartlett2009.fitted, klosterman.phenophases$unc.df)

Example output

Warning message:
In arrows(metrics[1, a], ylons[a], metrics[3, a], ylons[a], code = 3,  :
  zero-length arrow is of indeterminate angle and so skipped

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