LER: 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
11
12
LER(
  face,
  cycle = "yield",
  timescales = c("Annual", "Cumulative"),
  components = c("LER", "Trees", "Crop"),
  color.palette = c("black", "#009E73", "#E69F00"),
  size.palette = c(2, 1, 1),
  hline1 = TRUE,
  ymax = NA,
  plot = TRUE,
  ...
)

Arguments

face

An object of class "face".

cycle

One of "yield", "nitrogen", "water", or "light".

timescales

One or both of "Annual" and "Cumulative", indicating which timescales to plot.

components

One or more of "LER", "Trees", and "Crop, indicating which components to plot.

color.palette

A character vector of hex values or R standard color names defining the color palette for LER, Trees, and Crop lines, respectively.

size.palette

A numeric vector of values defining the size for LER, Trees, and Crop lines, respectively.

hline1

A logical indicating whether or not to plot a dotted horizontal line at y = 1.

ymax

A numeric value for the upper limit of the y-axis. If NA, the maximum value in the data is use.

plot

If TRUE, the default, a ggplot object is returned. If FALSE, the data that would create the plot is returned.

...

Other arguments passed to plot_hisafe_cycle_bar.

Value

If plot = TRUE, returns a ggplot object, otherwise the data that would create the plot is returned.

See Also

Other hisafe analysis functions: LER_summary(), 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 <- LER(hop, "yield")

## End(Not run)

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