Learn R Programming

lestat (version 1.9)

plot.normal: 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 normal
plot(x, ...)
# S3 method for 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.

Examples

Run this code
# NOT RUN {
plot(normal())
plot(mnormal(c(3,4,5), diag(3)))
plot(poissondistribution(3))
# }

Run the code above in your browser using DataLab