plotGamma {LearningStats} | R Documentation |
Density Function, Distribution Function and/or Quantile Function Representations associated with a Gamma Distribution
Description
plotGamma
represents density, distribution and/or quantile functions associated with a Gamma
distribution with certain parameters lambda
and shape
.
Usage
plotGamma(lambda, shape, type = "b", col = "black")
Arguments
lambda , shape |
parameters of the Gamma distribution (mean equal to |
type |
a character string giving the type of desired plot. The following values are possible: "b" (default) for density function, distribution function and quantile function representations together, "dis" for distribution function representation, "den" for density function representation and "q" for quantile function representation. |
col |
a single colour associated with the different representations; default to "black". |
Value
This function is called for the side effect of drawing the plot.
Examples
lambda=0.5;shape=4
plotGamma(lambda,shape)
plotGamma(lambda,shape,col="red")
plotGamma(lambda,shape,type="q")
plotGamma(lambda,shape,type="dis")
plotGamma(lambda,shape,type="den")
[Package LearningStats version 0.1.0 Index]