View source: R/plotDistribution.R
plotDistribution | R Documentation |
Plot function for known distributions, defined by input parameters
plotDistribution(
distrib = c("Gamma", "ZIExponential", "LogNormal", "TruncNormal", "Weibull"),
mu = NULL,
sig = NULL,
refValue = 1,
obsval = c(lower = NULL, mu = NULL, upper = NULL),
type = "continuous"
)
distrib |
Type of distribution. Must match allowed values. |
mu |
first parameter of distribution |
sig |
second parameter of distribution |
refValue |
reference value to be plotted along with the distribution |
obsval |
double, length = 3, observed mean and quartiles in the sequence
|
type |
fixed parameter set to "continuous" |
In it's present form plotDistribution
covers the Gamma-
lognormal, truncated normal, Weibull and ZIExponential distributions. It may
be expanded to cover more distributions and to accept other parameters than
expected values and quartiles in obsval
.
Jens Åström, Bård Pedersen
fitAndPlotDistribution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.