View source: R/norm_density_plot.R
plot_norm_tails | R Documentation |
Plot a normal distribution with one or both tails shaded
plot_norm_tails( lower_tail = 0.025, upper_tail = 0.975, pop_mean = 0, pop_sd = 1, xmin = NULL, xmax = NULL, len = 1000, fill_lower = rgb(0, 0.3, 0.8, 0.25), fill_middle = rgb(0, 0, 0, 0), fill_upper = rgb(0, 0.3, 0.8, 0.25), y_lab = "f(x)", x_lab = "x" )
lower_tail |
lower tail to plot |
upper_tail |
upper tail to plot |
pop_mean |
mean for the population |
pop_sd |
standard deviation for the plot |
xmin |
lower limit of x values to include |
xmax |
upper limit of x values to include |
len |
how many points to generate? |
fill_lower |
fill color for the lower tail |
fill_middle |
fill color for the non-tail part of the pdf |
fill_upper |
fill color for the upper tail |
y_lab |
label for x axis |
x_lab |
label for y axis |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.