normalPlot: Plot a normal distribution.

View source: R/normalPlot.R

normalPlotR Documentation

Plot a normal distribution.

Description

Plots a normal distribution with the area within the given bounds shaded. The probability (i.e. area) under the normal curve for the given bounds is also given.

Usage

normalPlot(mean = 0, sd = 1, bounds = c(-1, 1), tails = FALSE)

Arguments

mean

mean of the distribution.

sd

standard deviation of the distribution.

bounds

the bounds to shade.

tails

should the tails be shaded.

See Also

http://www.statmethods.net/advgraphs/probability.html

Examples

	normalPlot()
	normalPlot(bounds=c(-2,2))
	normalPlot(bounds=c(-3,3))
	normalPlot(tails=TRUE)

jbryer/DATA606 documentation built on Feb. 17, 2024, 4:13 a.m.