powered by
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, ...)
A list with two elements:
x - breaks, see graphics::hist.
x
graphics::hist
y - frequencies or relative frequencies, see graphics::hist.
y
A vector of observations.
See help file for function hist.
hist
Wheter frequencies (freq = TRUE) of density (freq = FALSE) should be represented on \(y\)-axis.
freq = TRUE
freq = FALSE
Arguments passed to function hist.
Marjan Cugmas
histNorm(rnorm(1000), freq = TRUE) histNorm(rnorm(1000), freq = FALSE)
Run the code above in your browser using DataLab