Learn R Programming

statip (version 0.2.3)

histo: Alternative Histograms

Description

A simplified version of hist() from package graphics.

Usage

histo(x, breaks, ...)

Arguments

x

numeric. A vector.

breaks

numeric. A vector of breakpoints to build the histogram, possibly given by find_breaks().

...

Additional parameters (currently not used).

Value

An object of class "histogram", which can be plotted by plot.histogram from package graphics. This object is a list with components:

  • breaks: the n+1 cell boundaries;

  • counts: n integers giving the number of x inside each cell;

  • xname: a string with the actual x argument name.

See Also

find_breaks() in this package; truehist() from package MASS; hist() from package graphics.