Learn R Programming

optbin (version 1.3)

plot.optbin: Plotting Optimal Bins

Description

plot method for class optbin.

Usage

# S3 method for optbin
plot(x, col=NULL, main="Binned Observations", ...)

Value

None

Arguments

x

an object of class optbin.

col

vector of colors to apply to bins (default uses an internal set)

main

title of graph

...

other parameters passed through to the underlying plotting routines (do not set xaxt or ann)

Details

The plot will contain the sorted points of the data that generated the bins. Points are color-coded per bin, and the plot contains the average value over the bin as a line. x axis labels are the upper thresholds for each bin.

See Also

optbin