Pending.
output from monthlyWB()
vector of three colors used for area under PPT, PET, and AET curves
single color used for PPT, PET, and AET lines
vector of three line styles used for PPT, PET, AET curves
spline or linear interpolation of monthly values, use of spline
may lead to minor smoothing artifacts in shaded areas
when interpolator = 'spline'
, argument passed to splinefun(..., method = spline.method)
scaling factor for month labels
scaling factor for legend
nothing, function is called to generate graphical output
if(requireNamespace('hydromad')) {
## A shallow / droughty soil near Sonora CA
# 100mm (4") AWC
AWC <- 100
PPT <- c(171, 151, 138, 71, 36, 7, 1, 2, 11, 48, 102, 145)
PET <- c(15.17, 18.26, 30.57, 42.95, 75.37, 108.05, 139.74, 128.9, 93.99, 59.84, 26.95, 14.2)
# calendar-year
# three year warm-up
x.wb <- monthlyWB(AWC, PPT, PET, S_init = 0, starting_month = 1, rep = 3, keep_last = TRUE)
# plot
plotWB_lines(x.wb)
}
#> Loading required namespace: hydromad