diag_hisafe_annualcells: Plot annualCells diagnostics of Hi-sAFe output

Description Usage Arguments Value See Also Examples

View source: R/diagnostics.R

Description

Creates a tile plot of every Hi-sAFe annualCells output variable, with one plot for every 5 simulation years. All plots are saved as png files to a specifified output path.

Usage

1
2
3
4
5
6
diag_hisafe_annualcells(
  hop,
  years = seq(min(hop$annualCells$Year), max(hop$annualCells$Year), 5),
  output.path = NULL,
  ...
)

Arguments

hop

An object of class "hop" or "face" containing output data from one or more Hi-sAFe simulations.

years

A numeric vector containing the years (after planting) to include. Use "all" to include all available values.

output.path

A character stting indicating the path to the directory where plots should be saved. Plots are saved in a subdirectory within this directory named /annualCells If no value is provided, the experiment/simulation path is read from the hop object, and a directory is created there called "analysis/diagnostics".

...

Other arguments passed to plot_hisafe_annualcells.

Value

Invisibly returns a list of ggplot objects.

See Also

Other hisafe diagnostic fucntions: diag_hisafe_cells(), diag_hisafe_monthcells(), diag_hisafe_ts(), diag_hisafe_voxels()

Examples

1
2
3
4
5
6
7
8
## Not run: 
# After reading in Hi-sAFe simulation data via:
mydata <- read_hisafe(path = "mydir", simu.names = "MySimulation")

# You can create tile plots of every annualCells variable:
diag_hisafe_annualcells(mydata)

## End(Not run)

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