makereport: Make a PDF report of several YplantQMC objects

Description Usage Arguments Details Value Note Author(s) See Also

Description

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

Usage

1
2
3
4
5
6
makereport(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

hemi

An object of class 'yphemi', see setHemi

met

An object of class 'ypmet', see setMet

ypsim

An object of class 'yplantsim', see YplantDay

filename

Optional, the name of the output file

Details

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 makereport as you see fit.

To create a report, simply use this command:

1
2
	makereport(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
	makereport(plant=myplant, hemi=spruceforest)

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

viewplot

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

summary.plant3d

Summarizes a plant

setHemi

Reads a hemiphoto - also describes the plot function.

fitdistribution

Fits (and plots) a leaf angle distribution.

setMet

Constructs (and plots) a weather object.

plot.leaffile

Plots a leaf.

YplantDay

A daily Yplant simulation (and a standard plot).

Value

A PDF is generated in the current working directory.

Note

Note that makereport 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 makereport. 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 2, 2019, 5:50 p.m.