Function plot
plots time series of the results of the soil plant water balance model (see spwb
),
plant water balance model (see pwb
), the forest growth model (see growth
)
or the forest dynamics model (see fordyn
).
# S3 method for spwb
plot(
x,
type = "PET_Precipitation",
cohorts = NULL,
bySpecies = FALSE,
dates = NULL,
subdaily = FALSE,
xlim = NULL,
ylim = NULL,
xlab = NULL,
ylab = NULL,
summary.freq = NULL,
...
)# S3 method for pwb
plot(
x,
type = "PlantTranspiration",
cohorts = NULL,
bySpecies = FALSE,
dates = NULL,
subdaily = FALSE,
xlim = NULL,
ylim = NULL,
xlab = NULL,
ylab = NULL,
summary.freq = NULL,
...
)
# S3 method for growth
plot(
x,
type = "PET_Precipitation",
cohorts = NULL,
bySpecies = FALSE,
dates = NULL,
subdaily = FALSE,
xlim = NULL,
ylim = NULL,
xlab = NULL,
ylab = NULL,
summary.freq = NULL,
...
)
# S3 method for fordyn
plot(
x,
type = "StandBasalArea",
cohorts = NULL,
bySpecies = FALSE,
dates = NULL,
xlim = NULL,
ylim = NULL,
xlab = NULL,
ylab = NULL,
summary.freq = NULL,
...
)
An ggplot object
An object of class spwb
, pwb
, growth
or fordyn
.
The information to be plotted (see details)
An integer, boolean or character vector to select the plant cohorts to be plotted. If cohorts = "T"
(resp. cohorts = "S"
) then all tree (resp. shrub) cohorts will be displayed.
Allows aggregating output by species, before drawing plots (only has an effect with some values of type
). Aggregation can involve a sum (as for plant lai or transpiration) or a LAI-weighted mean (as for plant stress or plant water potential), where LAI values are those of LAIlive
.
A Date vector with a subset of dates to be plotted.
Whether subdaily results should be shown, only for simulations using transpirationMode = "Sperry"
and having set subdailyResults = TRUE
in the simulation control object. If subdaily = TRUE
, then the valid strings for type
are listed in plot.spwb_day
.
Range of values for x.
Range of values for y.
x-axis label.
y-axis label.
Frequency of summary statistics (see cut.Date
).
Additional parameters for function plot
(not used).
Miquel De Cáceres Ainsa, CREAF
The following plots are currently available for spwb
(most of them also for pwb
):
"PET_Precipitation"
: Potential evapotranspiration and Precipitation.
"PET_NetRain"
: Potential evapotranspiration and Net rainfall.
"Snow"
: Snow precipitation and snowpack dynamics.
"Export"
: Water exported through deep drainage and surface runoff.
"Evapotranspiration"
: Plant transpiration and soil evaporation.
"SoilPsi"
: Soil water potential.
"SoilRWC"
: Soil relative water content (in percent of field capacity).
"SoilTheta"
: Soil moisture water content (in percent volume).
"SoilVol"
: Soil water volumetric content (in mm).
"PlantExtraction"
: Water extracted by plants from each soil layer.
"HydraulicRedistribution"
: Water added to each soil layer coming from other soil layers, transported through the plant hydraulic network.
"LAI"
: Expanded and dead leaf area index of the whole stand.
"PlantLAI"
: Plant cohort leaf area index (expanded leaves).
"PlantLAIlive"
: Plant cohort leaf area index ("live" leaves).
"PlantStress"
: Plant cohort average daily drought stress.
"PlantTranspiration"
: Plant cohort transpiration.
"TranspirationPerLeaf"
: Plant cohort transpiration per leaf area.
"PlantGrossPhotosynthesis"
: Plant cohort photosynthesis.
"GrossPhotosynthesisPerLeaf"
: Plant cohort photosynthesis per leaf area.
"StemRWC"
: Average daily stem relative water content.
"LeafRWC"
: Average daily leaf relative water content.
"LFMC"
: Live fuel moisture content.
The following plots are available for spwb
and pwb
only if transpirationMode = "Granier"
:
"PlantPsi"
: Plant cohort water potential.
"FPAR"
: Fraction of PAR at the canopy level of each plant cohort.
"AbsorbedSWRFraction"
: Fraction of SWR absorbed by each plant cohort.
The following plots are available for spwb
and pwb
only if transpirationMode = "Sperry"
:
"SoilPlantConductance"
: Average instantaneous overall soil plant conductance (calculated as the derivative of the supply function).
"LeafPsiMin"
: Midday leaf water potential.
"LeafPsiMax"
: Pre-dawn leaf water potential.
"LeafPsiRange"
: Range of leaf water potential.
"LeafPsiMin_SL"
: Minimum water potential of sunlit leaves.
"LeafPsiMax_SL"
: Maximum water potential of sunlit leaves.
"LeafPsiMin_SH"
: Minimum water potential of shade leaves.
"LeafPsiMax_SH"
: Maximum water potential of shade leaves.
"TempMin_SL"
: Minimum temperature of sunlit leaves.
"TempMax_SL"
: Maximum temperature of sunlit leaves.
"TempMin_SH"
: Minimum temperature of shade leaves.
"TempMax_SH"
: Maximum temperature of shade leaves.
"GSWMin_SL"
: Minimum stomatal conductance of sunlit leaves.
"GSWMax_SL"
: Maximum stomatal conductance of sunlit leaves.
"GSWMin_SH"
: Minimum stomatal conductance of shade leaves.
"GSWMax_SH"
: Maximum stomatal conductance of shade leaves.
"StemPsi"
: Midday (upper) stem water potential.
"RootPsi"
: Midday root crown water potential.
"PlantNetPhotosynthesis"
: Plant cohort net photosynthesis.
"NetPhotosynthesisPerLeaf"
: Plant cohort net photosynthesis per leaf area.
"PlantWUE"
: Plant cohort daily water use efficiency.
"PlantAbsorbedSWR"
: Plant cohort absorbed short wave radiation.
"AbsorbedSWRPerLeaf"
: Plant cohort absorbed short wave radiation per leaf area.
"PlantNetLWR"
: Plant cohort net long wave radiation.
"NetLWRPerLeaf"
: Plant cohort net long wave radiation per leaf area.
"AirTemperature"
: Minimum/maximum/mean daily temperatures above canopy.
"CanopyTemperature"
: Minimum/maximum/mean daily temperatures inside canopy.
"SoilTemperature"
: Minimum/maximum/mean daily temperatures inside the first soil layer.
"CanopyEnergyBalance"
: Canopy energy balance components.
"SoilEnergyBalance"
: Soil energy balance components.
In addition to the former, the following plots are available for objects growth
or fordyn
:
"CarbonBalance"
: Stand-level carbon balance components.
"BiomassBalance"
: Stand-level biomass balance components.
"GrossPhotosynthesis"
: Gross photosynthesis rate per dry weight.
"MaintenanceRespiration"
: Maintenance respiration cost per dry weight.
"PhotosynthesisMaintenanceRatio"
: The ratio of gross photosynthesis over maintenance respiration.
"RootExudation"
: Root exudation rate per dry weight.
"LabileCarbonBalance"
: Labile carbon balance per dry weight.
"SugarLeaf"
: Sugar concentration in leaves.
"StarchLeaf"
: Starch concentration in leaves.
"SugarSapwood"
: Sugar concentration in sapwood.
"StarchSapwood"
: Starch concentration in sapwood.
"SugarTransport"
: Phloem sugar transport rate.
"StructuralBiomassBalance"
: Daily structural biomass balance (g dry · ind-2).
"LabileBiomassBalance"
: Daily labile biomass balance (g dry · ind-2).
"PlantBiomassBalance"
: Daily plant biomass balance, i.e. labile change + structural change (g dry · ind-2).
"MortalityBiomassLoss"
: Biomass loss due to mortality (g dry · m-2).
"PlantBiomassBalance"
: Daily cohort biomass balance (including mortality) (g dry · m-2).
"LeafBiomass"
: Leaf structural dry biomass per individual.
"SapwoodBiomass"
: Sapwood dry biomass per individual.
"FineRootBiomass"
: Fine root dry biomass per individual.
"SapwoodArea"
: Sapwood area per individual.
"LeafArea"
: Leaf area per individual.
"FineRootArea"
: Fine root area per individual (only for transpirationMode = "Sperry"
or transpirationMode = "Sureau"
).
"DBH"
: Diameter at breast height (in cm) for an average individual of each plant cohort.
"Height"
: Height (in cm) for an average individual of each plant cohort.
"SAgrowth"
: Sapwood area growth rate.
"LAgrowth"
: Leaf area growth rate.
"FRAgrowth"
: Fine root area growth rate (only for transpirationMode = "Sperry"
or transpirationMode = "Sureau"
).
"HuberValue"
: Ratio of leaf area to sapwood area.
"RootAreaLeafArea"
: Ratio of fine root area to leaf area (only for transpirationMode = "Sperry"
or transpirationMode = "Sureau"
).
Finally, the following plots are only available for fordyn
simulation results:
"StandBasalArea"
: Stand basal area of living trees.
"StandDensity"
: Stand density of living trees.
"SpeciesBasalArea"
: Basal area of living trees by species.
"SpeciesDensity"
: Density of living trees by species.
"CohortBasalArea"
: Basal area of living trees by plant cohort.
"CohortDensity"
: Density of living trees by plant cohort.
spwb
, pwb
, growth
, fordyn
, summary.spwb
# \donttest{
#Load example daily meteorological data
data(examplemeteo)
#Load example plot plant data
data(exampleforest)
#Default species parameterization
data(SpParamsMED)
#Define soil with default soil params (4 layers)
examplesoil <- defaultSoilParams(4)
#Initialize control parameters
control <- defaultControl("Granier")
#Initialize input
x <- spwbInput(exampleforest,examplesoil, SpParamsMED, control)
#Call simulation function
S1 <- spwb(x, examplemeteo, latitude = 41.82592, elevation = 100)
#Plot results
plot(S1)
# }
Run the code above in your browser using DataLab