Description Usage Arguments Examples
Plot probability ditribution
1 2 3 4 5 |
dist |
Distribution name. Used for functions |
xmin |
Minimum value on the x-axis scale |
xmax |
Maximum value on the x-axis scale |
area |
numeric vector of length 2. Minimum and maximum values of an area under the curve to shade. |
tails |
logical. Shade areas in the tails |
line_opts |
list. Arguments passed to |
area_opts |
list. Arguments passed to |
n |
Number of points to interpolate over |
... |
Arguments passed to the distribution functions. |
p |
Probability area to shade. |
1 2 3 4 | plot_dist_density("norm", -4, 4, area = c(-2, 2))
plot_dist_density("norm", -4, 4, area = c(-2, 2), tails = TRUE)
plot_dist_density_p("norm", -4, 4, p = 0.95)
plot_dist_density_p("norm", -4, 4, p = 0.95, tails = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.