Usage
synth.peak(base = 0.07, base.time = 6, rise.time = 5, rise.factor,
recession.const = 0.2, length.out = 240, rez.time = length.out -
ceiling(base.time) - ceiling(rise.time))
synth.peak.error(base = 0.07, base.time = 6, rise.time = 5,
rise.factor, rise.factor2, recession.const = 0.2, length.out = 240,
rez.time = length.out - base.time - rise.time, err1.factor = c(1.2,
1.4, 1.6), err2.factor = c(0.01, 0.02, 0.04), err3.factor = c(2, 4,
8), err4.factor = c(9, 18, 27), err5.factor = c(0.1, 0.2, 0.4),
err6.factor = c(1.5, 2, 3),
err9.factor = c(2, 3, 4.5))
p.synth.peak.error(peaks, y.max = (max(peaks, na.rm = TRUE)), peak.cluster = NULL, peak.palette = grey(c(0, 0.6, 0.8)), use.layout = TRUE, show.errors = 1:n.errors, peak.lty = rep(1, n.errors), mfrow = c(2, ceiling(length(show.errors)/2)), plot.legend = TRUE, print.error.nr = TRUE)
Arguments
base
level of the base flow component
base.time
number of time steps before the rise phase starts.
May be negative, such that the peak starts outside the window.
rise.time
Number of time steps for the rise phase
rise.factor
The peak maximum is about rise.factor
higher than the base flow.
rise.factor2
rise.factor
for the "peaks" which only
show a recession phase.
recession.const
Recession constant for the peak.
length.out
Total length of the time series to be returned.
rez.time
Length of the recession phase
err1.factor
Factors to use for the first error type: Over-
and underestimation of the peak
err2.factor
Factors to use for the second error type: shifting of the entire time series
err3.factor
Factors to use for the third error type:
Recession too fast/too slow
err4.factor
Factors to use for the fourth error type: Lag time
err5.factor
Factors to use for the fifth error type: Correct
total volume, but peak over/underestimated
err6.factor
Factors to use for the sixth error type: Peak
too wide/too narrow
err9.factor
Factors to use for the ninth error type: Shift
during the recession phase
peaks
object returned from synth.peak.error()
y.max
upper limit for the y-axis
peak.cluster
object returned from peaks.in.clusters
used for
coloring the cluster assignment of synthetic peaks (see examples) peak.palette
Colors to use if peak.cluster is NULL: first
color for reference, second and third for peaks over- and
underestimating the reference
use.layout
Boolean, indicating whether to use the predefined
layout
plot.legend
Boolean, indicating whether to show the legend
print.error.nr
Boolean, indicating whether to label each subplot with a number
mfrow
mfrow plot parameter (only used, if use.layout=FALSE)
show.errors
Vector with indices indicating which errors to display
peak.lty
Line types for either clusters as defined in
peak.cluster or as in peak.palette