histogramDS {dsGraphics}R Documentation

Computes a histogram of the given data values without plotting.

Description

This functions produces the information required to plot a histogram. This is done without allowing for bins (cells) with a count of less than 5. If a bin has a count < 5 it is collapsed with the nearing bin; this process iterates until all bins have count >=5.

Usage

histogramDS(xvect, min, max, seed)

Arguments

xvect

the numeric vector for which the histogram is desired.

min

a numeric, the lower limit of the distribution.

max

a numeric, the upper limit of the distribution.

seed

an integer, the value to set the seed at when generating the break points.

Value

a list with an object of class histogram and the number of invalid cells

Author(s)

Gaye, A.


[Package dsGraphics version 4.0.0 ]