View source: R/norm_density_plot.R
gg_norm_conf_int | R Documentation |
Plot a confidence interval on a normal curve
gg_norm_conf_int( alpha = 0.05, pop_mean = 0, pop_sd = 1, xmin = NULL, xmax = NULL, len = 1000, fill_upper = rgb(0, 0.3, 0.8, 0.25), fill_lower = rgb(0, 0.3, 0.8, 0.25), fill_middle = rgb(0, 0, 0, 0), y_lab = "f(x)", x_lab = "x", lty_v = 2, title_fmt = "Interval contains %.1f%s of probabiltiy density.", arrow_label_fmt = "$%1$0.1f \\pm %2$0.2f \\times \\sigma$", arrow_size = 0.3, digits_label = 0, digits_axis = 3, x_auto_breaks = -1:1 )
alpha |
alpha for the fill |
pop_mean |
mean for the pop |
pop_sd |
sd for the pop |
xmin |
min x |
xmax |
max s |
len |
how many points to make for the curve. Higher number results in smoother curve |
fill_upper |
fill color for the upper tail |
fill_lower |
fill color for the lower tail |
fill_middle |
fill color for the non-tail part of the pdf |
y_lab |
labe for y axis |
x_lab |
label for x asxis |
lty_v |
line type for the upper and lower quantile limits |
title_fmt |
template for title |
arrow_label_fmt |
template for arrow lables |
arrow_size |
size for the horizontal arrow for the CI width label |
digits_label |
how many digits to round for the label |
digits_axis |
how many digits to round for the axes |
x_auto_breaks |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.