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 hist.

freq

Wheter frequencies (freq = TRUE) of density (freq = FALSE) should be represented on y-axis.

...

Arguments passed to function hist.

Value

A list with two elements:

Author(s)

Marjan Cugmas

Examples

histNorm(rnorm(1000), freq = TRUE)
histNorm(rnorm(1000), freq = FALSE)

[Package multiUS version 1.2.3 Index]