Plots distributions fitted by L-moments and adds plotting positions by Weibull and Gringorton.
This is an auxiliary graphing function to distLextreme
plotLextreme(
dlf,
selection = NULL,
order = FALSE,
add = FALSE,
nbest = 5,
log = "",
xlim = NULL,
ylim = NULL,
las = 1,
main = dlf$datname,
xlab = "Return Period RP [a]",
ylab = "Discharge HQ [m\U00B3/s]",
PPcol = "black",
PPpch = c(16, 3),
PPcex = 1,
distcols = berryFunctions::rainbow2(nbest),
lty = 1,
lwd = 1,
pch = NA,
cex = 1,
n_pch = 15,
legend = TRUE,
rmse = 4,
legargs = NULL,
quiet = FALSE,
logargs = NULL,
...
)
invisible dlf object, see printL
List as returned by distLextreme
or distLexBoot
Selection of distributions. Character vector with type as in
lmom2par
. DEFAULT: NULL
If selection is given, should legend and colors be ordered by gof anyways? DEFAULT: FALSE
If TRUE, plot is not called before adding lines. This lets you add lines to an existing plot. DEFAULT: FALSE
Number of distributions plotted, in order of goodness of fit. Overwritten internally if selection is given. DEFAULT: 5
Charstring ("x", "y", "xy") for logarithmic axes. See logargs
. DEFAULT: ""
X-axis limits. DEFAULT: xlim of plotting positions
Y-lim. DEFAULT: from min to extended max
LabelAxisStyle to orient labels, see par
. DEFAULT: 1
Title of plot. DEFAULT: dlf$datname
X axis label. DEFAULT: "Return Period RP [a]"
Y axis label. Please note that the ubuntu pdf viewer might be unable to display unicode superscript. DEFAULT: "Discharge HQ [m3/s]"
Plotting Position point colors, vector of length two for Weibull and Gringorton, recycled. PP are not used for fitting distributions, but for plotting only. DEFAULT: "black"
point characters for plotting positions after Weibull and Gringorton, respectively. NA to suppress in plot and legend. DEFAULT: c(16,3)
Character EXpansion of plotting points. DEFAULT: 1
Color for each distribution added with lines
.
Recycled, if necessary. DEFAULT: rainbow2
Line TYpe for plotted distributions. Is recycled to from a vector of length nbest, i.e. a value for each dist. DEFAULT: 1
Line WiDth of distribution lines. Recycled vector of length nbest. DEFAULT: 1
Point CHaracter of points added at regular intervals. This makes lines more distinguishable from each other. NA to suppress. Recycled vector of length nbest. DEFAULT: NA
if pch != NA, size of points. Recycled vector of length nbest. DEFAULT: 1
Number of points spread evenly along the line. Recycled vector of length nbest. DEFAULT: 15
Logical. Add a legend? DEFAULT: TRUE
Integer. If rmse > 0, RMSE values are added to legend.
They are rounded to rmse
digits. DEFAULT: 4
list of arguments passed to legend
except for
legend, col, pch, lwd, lty. DEFAULT: NULL
Suppress notes? DEFAULT: FALSE
list of arguments passed to berryFunctions::logAxis
.
Further arguments passed to plot
like yaxt="n", ...
Berry Boessenkool, berry-b@gmx.de, March 2015, updated heavily Aug 2015
distLextreme
, plotLfit