visual_legend: Create a legend for hisafe_visual()

Description Usage Arguments Value

View source: R/visualize.R

Description

Creates a legend for hisafe_visual().

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
visual_legend(
  hop,
  vars = list(crown.alpha = "leafArea", trunk.alpha = "carbonLabile", crop.alpha =
    "lai", yield.alpha = "eai", voxel.alpha = "totalTreeRootDensity", voxel.border =
    "cropRootDensity", voxel.L.size = "theta", voxel.C.size =
    "totalTreeCoarseRootBiomass", voxel.R.size = "mineralNitrogenStock", voxel.L.alpha =
    "totalTreeWaterUptake", voxel.C.alpha = "fineRootCost", voxel.R.alpha =
    "totalTreeNitrogenUptake"),
  cells.var = "relativeTotalParIncident"
)

Arguments

hop

An object of class hop.

vars

A list of variable names. See hisafe_slice for details.

cells.var

A character string of the name of the variable ploted by plot_hisafe_cells.

Value

A ggplot object containing the legend.


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