Description Usage Arguments Details Author(s) Examples
View source: R/plot.phenopix.R
Plotting method for objects of class phenopix
1 2 |
x |
An object of class |
y |
It must be |
what |
A character vector of length 1. Available options are: |
main |
A main title for the plot. If not specified the title will be build with fit name and threshold name. |
... |
For the plotting function, a number of parameters from generic |
A dedicated plotting function for objects of class phenopix
. The default shows observed
values as a grey line, the fitted function in black and extracted thresholds in palette()
colors. If available, uncertainty is also shown with a family of lightgrey curves and as error
bars on the extracted thresholds.
Gianluca Filippa <gian.filippa@gmail.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
data(bartlett2009.filtered)
fitted <- greenProcess(bartlett2009.filtered, 'klosterman',
'gu', plot=FALSE, uncert=TRUE, nrep=5, ncores=2)
plot(fitted) ## default
## slightly more elaborated, with suppression of default title
plot(fitted, type='p', pch=20, ylab='GCC', xlab='DOY', col='grey',
what='all', main='Fit + thresholds')
## only with the fitting curve
plot(fitted, type='p', pch=20, ylab='GCC', xlab='DOY', col='grey',
what='fitting', main='Fit only')
## show a boxplot of thresholds extracted from the uncertainty estimation
plot(fitted, what='thresholds')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.