Calculates and draws rhizosphere, root, stem and leaf resistances for simulation time steps
spwb.resistances(x, cohort = 1, relative = FALSE, draw = FALSE,
cumulative = FALSE, yearAxis = FALSE, xlab = NULL, ylab = NULL)
An object of class spwb
. The function only works with the result of simulations with transpirationMode = "Complex".
An integer index indicating the cohort for which resistances are desired (by default the first cohort).
A boolean flag to indicate that relative percentages are desired as output
A boolean flag to indicate that a plot should be drawn.
A flag to indicate that drawn series should be cumulative.
A boolean to indicate whether the units of the x-axis are years (by default they are dates).
x-axis label.
y-axis label.
A data frame with dates in rows and resistance segments in columns (Rhizosphere, Root, Stem and Leaf). Values depend on whether relative = TRUE
(percentages) or relative = FALSE
(absolute resistance values). If draw = TRUE
the calculated resistances are returned as an invisible object.
The function makes internal calls to hydraulics.soilPlantResistances
.