plotDUnif: Probability Mass and/or Distribution Function Representations...

Description Usage Arguments Value Examples

View source: R/dunif.R

Description

plotDUnif represents the probability mass and/or the distribution function associated with a Discrete Uniform distribution with support x.

Usage

1
plotDUnif(x, type = "b", col = "grey")

Arguments

x

support of the discrete variable.

type

a character string giving the type of desired plot. The following values are possible: "b" (default) for probability mass function and distribution function representations together, "d" for distribution function representation and "p" for probability mass function representation.

col

a single colour associated with the probability mass function representation; default to "grey".

Value

A matrix containing the probability mass and the distribution function associated with each point of the support (denoted by x) of a Discrete Uniform distribution.

Examples

1
2
3
4
x=1:5
plotDUnif(x,type="d")
plotDUnif(x,type="p",col="pink")
plotDUnif(x)

LearningStats documentation built on April 21, 2021, 9:06 a.m.