View source: R/color_dens_area.R
Plot a density function (e.g. dnorm) and color a specified area under the curve
1 2 | color_dens_area(density_function, color_area = c(-3, 3),
range_x = c(-3, 3), fill_col = "steelblue", ...)
|
density_function |
The density function to daw. Choose from e.g. http://www.stat.umn.edu/geyer/old/5101/rlook.html |
color_area |
Area under the density curve to be colored. |
range_x |
X-Axis range of the plot |
fill_col |
Color of the specified area |
... |
additional parameters for the density function |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.