ypreport: Make a PDF report of several YplantQMC objects

Description Usage Arguments Value Note Author(s) See Also

View source: R/ypreport.R

Description

Produce a report containing standard graphs and summaries of YplantQMC objects. See Details for usage.

This function produces a number of standard plots and prints of five different YplantQMC objects. The plots cannot at the moment not be customized; please see below for the component functions that generate the plots (these usually have more options for customization). Or, modify the code of ypreport as you see fit.

To create a report, simply use this command:

1
2
ypreport(plant=myplant, met=asunnyday, phy=eucleaf, hemi=mycanopy,
ypsim=eucsim1) 

Where myplant, asunnyday, eucleaf, mycanopy and eucsim1 are objects that you have already generated. The function is flexible : you can generate a report on a subset of the objects, for example only on the hemiphoto and the plant:

1
2
 ypreport(plant=myplant,
hemi=spruceforest) 

You may want to check out the following functions, which are used in ypreport:

list(list("viewplot"))

Produces a three-panel plot with side and top views of the plant.

list(list("summary.plant3d"))

Summarizes a plant

list(list("setHemi"))

Reads a hemiphoto - also describes the plot function.

list(list("fitdistribution"))

Fits (and plots) a leaf angle distribution.

list(list("setMet"))

Constructs (and plots) a weather object.

list(list("plot.leaffile"))

Plots a leaf.

list(list("YplantDay"))

A daily Yplant simulation (and a standard plot).

Usage

1
2
ypreport(plant = NULL, phy = NULL, met = NULL, hemi = NULL,
  ypsim = NULL, filename = NA)

Arguments

plant

An object of class 'plant3d', see constructplant

phy

An object of class 'ypphy', see setPhy

met

An object of class 'ypmet', see setMet

hemi

An object of class 'yphemi', see setHemi

ypsim

An object of class 'yplantsim', see YplantDay

filename

Optional, the name of the output file

Value

A PDF is generated in the current working directory.

Note

Note that ypreport might fail if you have a PDF open with the same name (as you may have generated this report once before on the same day). Make sure to close the PDF before running ypreport. If a PDF is generated that can't be opened, use this command:

1

And try again.

Author(s)

Remko Duursma

See Also

plot.plant3d,viewplot,YplantDay


YplantQMC documentation built on May 29, 2017, 7:02 p.m.