Learn R Programming

berryFunctions (version 1.10.0)

logHist: Histogram of logarithmic values

Description

Draw histogram of values on a logarithmic scale with nice axis labels

Usage

logHist(x, logargs = NULL, main = xmain, xlab = xname, ...)

Arguments

x
Vector of numerical values
logargs
A list of arguments passed to logAxis. DEFAULT: NULL
main
Title of graph, internally from x. DEFAULT: xmain
xlab
X axis label. DEFAULT: xname
...
further arguments passed to hist like breaks, col, ..., but not xaxt or add.

Value

none

See Also

logAxis, hist

Examples

Run this code

dat <- rbeta(1e4, 2, 18)*100
hist(dat, col="tan", breaks=50)
logHist(dat, col="tan", breaks=50)

Run the code above in your browser using DataLab