cycle_summary: Plot summary dashboard of daily and annual cycles

Description Usage Arguments Value See Also Examples

Description

Plots summary dashboard of daily and annual cycles.

Usage

1
2
3
4
5
6
7
8
9
cycle_summary(
  hop,
  daily.year,
  simu.name = NULL,
  cycles = c("carbon", "light", "water", "nitrogen"),
  crop.names = c("Main crop", "Inter crop"),
  output.path = NULL,
  plot.labels = NULL
)

Arguments

hop

An object of class hop or face.

simu.name

A character vector of legnth 1 indicating the SimulationName within hop to plot.

cycles

A character vector of the cycles to include. Supported cycles include: 'carbon', 'light', 'water', and 'nitrogen. See plot_hisafe_cycle_bar for details of each cycle.

crop.names

A character vector of length 2 containing the names to use in the legend for the mainCrop and interCrop of Hi-sAFe, in that order.

output.path

A character string indicating the path to the directory where plots should be saved. If NULL, the experiment/simulation path is read from the hop object, and a directory is created there called "analysis". The plot will be saved in this directory as "cycles_summary_SimulationName.jpg".

plot.labels

A character vector of labels to label upper-right corner of plot panels. If NULL, no labels will be added.

daily.years

A numeric vector of legnth 1 indicating the year to use for the daily plots.

Value

Invisibly retruns an egg object.

See Also

Other hisafe analysis functions: LER_summary(), LER(), analyze_hisafe(), hisafe_budget(), plot_hisafe_cycle_bar(), plot_hisafe_cycle_ts(), stics_budget_comp(), write_hop()

Examples

1
2
3
4
## Not run: 
cycle.plot <- cycle_summary(myhop, 2000)

## End(Not run)

kevinwolz/hisafer documentation built on Oct. 19, 2020, 4:43 p.m.