plotNorm {LearningStats} | R Documentation |
Density Function, Distribution Function and/or Quantile Function Representations associated with a Normal Distribution
Description
plotNorm
represents density, distribution and/or quantile functions associated with a Normal
distribution with certain parameters mu
and sigma
.
Usage
plotNorm(mu, sigma, type = "b", col = "black")
Arguments
mu |
the mean of the Normal distribution. |
sigma |
the standard deviation of the Normal distribution. |
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
mu=10; sigma=5
plotNorm(mu,sigma)
plotNorm(mu,sigma,col="red")
plotNorm(mu,sigma,type="q")
plotNorm(mu,sigma,type="dis")
plotNorm(mu,sigma,type="den")
[Package LearningStats version 0.1.0 Index]