plot.normal {lestat}R Documentation

Plotting a Probability Distribution

Description

A plot is constructed convering the central part of a probability distribution. The purpose is simply to illustrate the properties of the distribution.

Usage

## S3 method for class 'normal'
plot(x, ...)
## S3 method for class 'binomialdistribution'
plot(x, ...)

Arguments

x

A probability distribution.

...

Other arguments (not currently in use).

Value

For univariate discrete distributions, a plot is generated showing with a histogram the probabilities of each of the possible values of the distribution. For univariate continuous distributions, a plot is made of roughly the central 99 of the distribution. For multivariate distributions, a combined plot is made, where one can find the marginal distributions along the diagonal, and contour plots for bivariate marginal distributions off the diagonal.

Author(s)

Petter Mostad <mostad@chalmers.se>

Examples

plot(normal())
plot(mnormal(c(3,4,5), diag(3)))
plot(poissondistribution(3))

[Package lestat version 1.9 Index]