LER_summary: Plot LER for yield, light, water, or nitrogen

Description Usage Arguments Value See Also Examples

View source: R/LER.R

Description

Plot LER for yield, light, water, or nitrogen.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
LER_summary(
  face,
  metrics = c("yield", "light", "water", "nitrogen"),
  fixed.scale = TRUE,
  nrow = 4,
  output.path = NULL,
  plot.labels = NULL,
  legend.inside = TRUE,
  ...
)

Arguments

face

An object of class "face".

metrics

A character vector indicating which LER metrics to include. Supported metrics include: 'yield', 'light', 'water', and 'nitrogen.

fixed.scale

A logical indicating wether the y-axes of all panels should have have the same scale.

nrow

A numeric value of the number of rows in which to arrange plots.

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 wil be saved in this directory as "LER_summary.jpg".

plot.labels

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

legend.inside

A logical indicating whether the legend should be placed inside the plots.

...

Other arguments passed to LER.

Value

Invisibly retruns an egg object.

See Also

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

Examples

1
2
3
4
## Not run: 
ler.plot <- summary_LER(face, "./")

## End(Not run)

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