normal_plot: Plot a normal distribution.

View source: R/distribution_plots.R

normal_plotR Documentation

Plot a normal distribution.

Description

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

Usage

normal_plot(
  mean = 0,
  sd = 1,
  cv = c(-1, 1),
  tails = "no",
  limits = c(mean - 3 * sd, mean + 3 * sd),
  color = "steelblue"
)

Arguments

mean

mean of the distribution.

sd

standard deviation of the distribution.

cv

the critical value(s) to shade.

limits

the limits of the plot.

color

the color to fill in the area.

Examples

	normal_plot()
	normal_plot(cv=c(-2,2))
	normal_plot(cv=c(-3,3))
	normal_plot(tails=TRUE)

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