Plot histogram and distribution densities or ecdf with cumulated probability
plotLfit(
dlf,
nbest = 5,
selection = NULL,
order = TRUE,
rmse = 4,
cdf = FALSE,
log = FALSE,
supportends = TRUE,
breaks = 20,
xlim = extendrange(dlf$dat, f = 0.15),
ylim = NULL,
col = "grey",
main = paste(if (cdf) "Cumulated", "density distributions of", dlf$datname),
xlab = dlf$datname,
ylab = if (cdf) "(Empirical) Cumulated Density (CDF)" else
"Probability Density Function (PDF)",
las = 1,
distcols = berryFunctions::rainbow2(nbest),
lty = 1,
add = FALSE,
logargs = NULL,
legend = TRUE,
legargs = NULL,
histargs = NULL,
...
)
invisible dlf object, see printL
List as returned by distLfit
, containing the
elements dat, parameter, gof, datname
Number of distributions plotted, in order of goodness of fit. DEFAULT: 5
Names of distributions in dlf$parameter
that will be drawn.
Overrides nbest. DEFAULT: NULL
Logical: order legend and colors by RMSE, even if dlf$gof is unordered or selection is given? DEFAULT: TRUE
Integers. If rmse != 0, RMSE values are added to legend.
They are rounded to rmse
digits. DEFAULT: 4
If TRUE, plot cumulated DF instead of probability density. DEFAULT: FALSE
If TRUE, logAxis is called. Only makes sense if dlf$dat is already logarithmic and ranges eg. from -2 to 3. DEFAULT: FALSE
If TRUE, dots are placed at the support bounds. DEFAULT: TRUE
hist
breaks. DEFAULT: 20
hist
or ecdf
main, xlab, ylab.
DEFAULT: abstractions from dlf$datname
Label Axis Style for orientation of numbers along axes. DEFAULT: 1
Color for each distribution added with lines
.
DEFAULT: rainbow2
Line TYpe for plotted distributions. Recycled vector of length nbest. DEFAULT: 1
If TRUE, hist/ecdf is not called before adding lines. This lets you add lines highly customized one by one. DEFAULT: FALSE
List of arguments passed to logAxis
if
log=TRUE
. DEFAULT: NULL
Should legend
be called? DEFAULT: TRUE
List of arguments passed to legend
except for
legend and col. DEFAULT: NULL
List of arguments passed to hist
or ecdf
except for x, freq. DEFAULT: NULL
Further arguments passed to lines
, like type, pch, ...
Berry Boessenkool, berry-b@gmx.de, Sept 2014
By default, this plots density instead of CDF, because the distributions are easier to discern and tail behavior is easier to judge visually.
distLfit
, plotLquantile