histldn: Histogram with log counts, defaults, and normal density...

histldnR Documentation

Histogram with log counts, defaults, and normal density approximation.

Description

histld plots a histogram having the counts logged and passing some default values to hist. A Gaussian curve of normal approximation gets superposed onto the histogram.

Usage

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

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

other parameters to hist

Value

an object of class histogram, see hist

Author(s)

Tomas Sieger

Examples

opar<-par(mfrow=c(1,2))
x<-rnorm(1000)
x<-c(x,rep(x[abs(x)<1],10),rep(x[abs(x)<.3],20),rep(x[abs(x)<.1],50))
histdn(x)
histldn(x)
par(opar)

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