plotLfit | R Documentation |
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,
...
)
dlf |
List as returned by |
nbest |
Number of distributions plotted, in order of goodness of fit. DEFAULT: 5 |
selection |
Names of distributions in |
order |
Logical: order legend and colors by RMSE, even if dlf$gof is unordered or selection is given? DEFAULT: TRUE |
rmse |
Integers. If rmse != 0, RMSE values are added to legend.
They are rounded to |
cdf |
If TRUE, plot cumulated DF instead of probability density. DEFAULT: FALSE |
log |
If TRUE, logAxis is called. Only makes sense if dlf$dat is already logarithmic and ranges eg. from -2 to 3. DEFAULT: FALSE |
supportends |
If TRUE, dots are placed at the support bounds. DEFAULT: TRUE |
breaks |
|
xlim , ylim |
|
col |
|
main , xlab , ylab |
|
las |
Label Axis Style for orientation of numbers along axes. DEFAULT: 1 |
distcols |
Color for each distribution added with |
lty |
Line TYpe for plotted distributions. Recycled vector of length nbest. DEFAULT: 1 |
add |
If TRUE, hist/ecdf is not called before adding lines. This lets you add lines highly customized one by one. DEFAULT: FALSE |
logargs |
List of arguments passed to |
legend |
Should |
legargs |
List of arguments passed to |
histargs |
List of arguments passed to |
... |
Further arguments passed to |
By default, this plots density instead of CDF, because the distributions are easier to discern and tail behavior is easier to judge visually.
invisible dlf object, see printL
Berry Boessenkool, berry-b@gmx.de, Sept 2014
distLfit
, plotLquantile
# See distLfit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.