histNorm | R Documentation |
The function draws a histogram with a normal density curve. The parameters (mean and standard deviation) are estimated on the empirical data.
histNorm(y, breaks = "Sturges", freq = TRUE, ...)
y |
A vector of observations. |
breaks |
See help file for function |
freq |
Wheter frequencies ( |
... |
Arguments passed to function |
A list with two elements:
x
- breaks, see graphics::hist
.
y
- frequencies or relative frequencies, see graphics::hist
.
Marjan Cugmas
histNorm(rnorm(1000), freq = TRUE)
histNorm(rnorm(1000), freq = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.