Learn R Programming

phenopix (version 2.4.5)

update.phenopix: Update phenopix objects.

Description

Update method for objects of class phenopix

Usage

# S3 method for phenopix
update(object, threshold, envelope, quantiles, uncert, plot, ...)

Arguments

object

An object of class phenopix

threshold

One between 'spline', 'derivatives', 'klosterman', 'gu'

envelope

If left blank is recicled from original fitting. See PhenoExtract

quantiles

If left blank is recicled from original fitting. See PhenoExtract

uncert

If left blank is recicled from original fitting. See PhenoExtract

plot

If left blank is recicled from original fitting. See PhenoExtract

...

Plotting arguments. See PhenoExtract

Author

Gianluca Filippa <gian.filippa@gmail.com>

Details

This function allows to update a phenopix object in output from greenProcess to extract different thresholds withoud refitting the data (which is highly time-consuming when uncertainty is computed). All arguments except threshold may be left blank and will be recycled from the original fit. But the can also be changed. See PhenoExtract where arguments are described in detail.

Examples

Run this code
if (FALSE) {
data(bartlett2009.filtered)
fitted <- greenProcess(bartlett2009.filtered, 'klosterman', 
  'klosterman', plot=FALSE)
fitted.gu <- update(fitted, 'gu')
}

Run the code above in your browser using DataLab