histNorm {multiUS} | R Documentation |
Histogram with normal curve
Description
The function draws a histogram with a normal density curve. The parameters (mean and standard deviation) are estimated on the empirical data.
Usage
histNorm(y, breaks = "Sturges", freq = TRUE, ...)
Arguments
y |
A vector of observations. |
breaks |
See help file for function |
freq |
Wheter frequencies ( |
... |
Arguments passed to function |
Value
A list with two elements:
-
x
- breaks, seegraphics::hist
. -
y
- frequencies or relative frequencies, seegraphics::hist
.
Author(s)
Marjan Cugmas
Examples
histNorm(rnorm(1000), freq = TRUE)
histNorm(rnorm(1000), freq = FALSE)
[Package multiUS version 1.2.3 Index]