Description Usage Arguments Value See Also
Plots a "sliced" profile of the simulated Hi-sAFe scene. Requires the ggforce package.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | hisafe_slice(
hop,
date,
simu.names = "all",
tree.ids = "all",
plot.x = "x",
Y = "all",
scene.shift = 0,
rel.dates = NULL,
height.dates = date,
max.soil.depth = NA,
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"),
tree.rel.vars = "SYT",
crop.rel.vars = "SY",
voxel.rel.vars = "SY",
trees = TRUE,
crops = TRUE,
voxels = TRUE,
climate = TRUE,
mem.max = 0,
plot.rows = 1
)
|
hop |
An object of class hop. |
date |
A character string of the date to plot, in the format "YYYY-MM-DD" or of class Date. |
simu.names |
A character vector of the SimulationNames within |
tree.ids |
A numeric vector indicating a subset of tree ids to plot. Use "all" to include all available values. |
plot.x |
Either "x" or "y", indicating which axis of the Hi-sAFe scene should be plotted along the x-axis of the plot. |
Y |
A numeric vector indicating a subset of cell locations to include when summarizing cell/voxel data.
If |
scene.shift |
A number indicating the number of cells to shift the scene -x (if plot.x = "x") or -y (if plot.x = "y") direction. Cell rows less than this value will be "flipped" to adjoin the right side of the plot. |
rel.dates |
A character vector (in the format "YYYY-MM-DD") or a vector of class Date of the dates from which to scale all aesthetics set by |
height.dates |
A character vector (in the format "YYYY-MM-DD") or a vector of class Date of the dates from which the plot height should be determined from the maximum height of trees and crops in this range. |
max.soil.depth |
The maximum depth for which to plot voxel data. To reduce confusion, this value can be supplied as positive or negative. |
vars |
A list of variable names specifying which simulated variables in
|
tree.rel.vars |
A character string indicating how to group data to determine the maximum value by which to scale tree aesthetics set by |
crop.rel.vars |
Same as |
voxel.rel.vars |
Same as |
trees |
A logical indicating whether or not to plot the trees in the scene. |
crops |
A logical indicating whether or not to plot the crops in the scene. |
voxels |
A logical indicating whether or not to plot the voxels in the scene. |
climate |
A logical indicating whether or not to plot climate aspects (precipitation, water table) in the scene. |
mem.max |
An integer specifying the maximum number of days into the past to search
for crop/voxel data when no data is available for |
plot.rows |
An integer specifying |
A ggplot object.
Other hisafe visualization functions:
hisafe_root3D()
,
hisafe_snapshot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.