plotUnif {LearningStats}R Documentation

Density Function, Distribution Function and/or Quantile Function Representations associated with a Uniform Distribution

Description

plotUnif represents density, distribution and/or quantile functions associated with a Uniform distribution with min and max the lower and upper limits, respectively.

Usage

plotUnif(min, max, type = "b", col = "black")

Arguments

min

minimum value of the Uniform distribution.

max

maximum value of the Uniform 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

min=0 ; max=1
plotUnif(min,max)
plotUnif(min,max,col="red")
plotUnif(min,max,type="q")
plotUnif(min,max,type="dis")
plotUnif(min,max,type="den")

[Package LearningStats version 0.1.0 Index]