plotPois {LearningStats}R Documentation

Probability Mass and/or Distribution Function Representations associated with a Poisson Distribution

Description

plotPois represents the probability mass and/or the distribution function associated with a Poisson distribution with parameter lambda.

Usage

plotPois(lambda, type = "b", col = "grey")

Arguments

lambda

mean of the Poisson distribution.

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 of a Poisson distribution with parameter lambda.

Examples

lambda=2
plotPois(lambda,type="d")
plotPois(lambda,type="p",col="pink")
plotPois(lambda)

[Package LearningStats version 0.1.0 Index]