View source: R/distribution_plots.R
normal_plot | R Documentation |
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.
normal_plot(
mean = 0,
sd = 1,
cv = c(-1, 1),
tails = "no",
limits = c(mean - 3 * sd, mean + 3 * sd),
color = "steelblue"
)
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. |
normal_plot()
normal_plot(cv=c(-2,2))
normal_plot(cv=c(-3,3))
normal_plot(tails=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.