plotDistribution: Plot function for known distributions

View source: R/plotDistribution.R

plotDistributionR Documentation

Plot function for known distributions

Description

Plot function for known distributions, defined by input parameters

Usage

plotDistribution(
  distrib = c("Gamma", "ZIExponential", "LogNormal", "TruncNormal", "Weibull"),
  mu = NULL,
  sig = NULL,
  refValue = 1,
  obsval = c(lower = NULL, mu = NULL, upper = NULL),
  type = "continuous"
)

Arguments

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 c(lower.quartile, mean, upper.quartile)

type

fixed parameter set to "continuous"

Note

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.

Author(s)

Jens Åström, Bård Pedersen

See Also

fitAndPlotDistribution


NINAnor/NIcalc documentation built on Oct. 26, 2023, 9:37 a.m.