histdn: Histogram with defaults and normal density approximation.

histdnR Documentation

Histogram with defaults and normal density approximation.

Description

histd is just a shortcut to hist passing it some default values, with a Gaussian curve of normal approximation superposed onto it.

Usage

histdn(x, breaks = 100, 
    col = "gray", coln = "red", 
    main = NULL, xlab = NULL, 
    ...)

Arguments

x

a vector of values for which the histogram is desired

breaks

histogram breaks, see hist

col

a color to fill the bars, defaults to gray, see hist

coln

a color of normal density estimate

main
xlab
...

other parameters to hist

Value

an object of class histogram, see hist

Author(s)

Tomas Sieger

Examples

histdn(rnorm(100))

tsieger/tsiMisc documentation built on Oct. 10, 2023, 10:24 p.m.