Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.


statip

Statistical Functions for Probability Distributions and Regression

v0.2.3
GPL-3
Authors
Paul Poncet [aut, cre], The R Core Team [aut, cph] (C function 'BinDist' copied from package 'stats'), The R Foundation [cph] (C function 'BinDist' copied from package 'stats'), Adrian Baddeley [ctb] (C function 'BinDist' copied from package 'stats')
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.