View source: R/overlayDensities.R
| iscamaddnorm | R Documentation |
addnorm creates a histogram of x and overlays a normal density function.
iscamaddnorm(
x,
main = "Histogram with normal curve",
xlab = deparse(substitute(x)),
bins = NULL
)
x |
A numeric vector representing the data to be plotted. |
main |
(optional) title for the plot. |
xlab |
(optional) x-axis label for the plot. |
bins |
(optional) number of bins for the histogram. |
A histogram of x overlayed with an normal density function.
set.seed(0)
x <- rnorm(100)
iscamaddnorm(x)
iscamaddnorm(x, main = "Your Active Title", xlab = "Normal Data", bins = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.