Learn R Programming

phenology (version 3.40)

plot.phenology: Plot the phenology from a result.

Description

The function plot.phenology plots the phenology graph from a result.

Usage

## S3 method for class 'phenology':
plot(x, ..., data = NULL,
    parameters = NULL, parametersfixed = NA, pdf = FALSE,
    series = "all", moon = FALSE, help = FALSE)

Arguments

x
A result file generated by fit_phenology
...
Parameters used by plot_phenology
data
A dataset generated by add_format
pdf
TRUE or FALSE, indicates if a pdf file is generated.
parametersfixed
Set of fixed parameters
parameters
Set of parameters to be changed
series
Number of series to be analyzed or 'all'
moon
If TRUE, the moon phase is ploted. Default is FALSE
help
If TRUE, an help is displayed

Value

  • Return A list of lists with formated outputs For each site: $site=name of the site $estimate1=Estimation of counts not taking into account the observations $sd1=The SD of estimation1 $estimate2=Estimation of counts taking into account the observations $sd2=The SD of estimation2

Details

plot.phenology plots the phenology.

Examples

Run this code
library(phenology)
# Read a file with data
# Gratiot<-read.delim("http://max2.ese.u-psud.fr/epc/conservation/BI/Complete.txt", , header=FALSE)
data(Gratiot)
# Generate a formatted list nammed data_Gratiot
data_Gratiot<-add_format(origin=NULL, add=Gratiot, name="Complete", reference=as.Date("2001-01-01"), format="%d/%m/%Y")
# Generate initial points for the optimisation
parg<-par_init(data_Gratiot, parametersfixed=NULL)
# Run the optimisation
# result_Gratiot<-fit_phenology(data=data_Gratiot, parametersfit=parg, parametersfixed=NULL, trace=1)
data(result_Gratiot)
# Plot the phenology and get some stats
output<-plot(result_Gratiot, pdf=FALSE)

Run the code above in your browser using DataLab