Learn R Programming

optbin (version 1.3)

hist.optbin: Histogram with Optimal Bins Marked

Description

Draw a histogram of the data used to build the optimal binning and mark the extent of the bins.

Usage

# S3 method for optbin
hist(x, bincol=NULL, main=NULL, xlab=NULL, ...)

Value

None

Arguments

x

an object of class optbin.

bincol

vector of colors for showing extent of bins (default uses an internal set)

main

plot title, if not specified will modify the normal histogram title

xlab

x axis label, if not specified will modify the normal histogram label

...

other parameters passed through to hist

Details

The points behind the binning are passed unchanged to the histogram function. Bins are marked with colored bars under the x axis, and lines showing the average value in each are also drawn on top.

See Also

optbin, hist