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

histabunch

A Bunch of Histograms


Description

Plot a bunch of histograms describing the marginal distributions the columns in a data frame.

Usage

histabunch(x, gap = 1, same.scale = FALSE, boxes = FALSE,
           min.continuous = 12, max.factor = 40,
           vertical.axes = FALSE, ...)

Arguments

x

A matrix or data frame containing the variables to be plotted.

gap

The gap between the plots, measured in lines of text.

same.scale

Logical. Indicates whether the histograms should all be plotted on the same scale.

boxes

Logical. Indicates whether boxes should be drawn around the histograms.

min.continuous

Numeric variables with more than min.continuous unique values will be plotted as continuous. Otherwise they will be treated as factors.

max.factor

Factors with more than max.factor levels will be beautified (ha!) by combining their remaining levels into an "other" category.

vertical.axes

Logical value indicating whether the histograms should be given vertical "Y" axes.

...

Extra arguments passed to hist (for numeric variables) or barplot (for factors).

Value

Called for its side effect, which is to produce multiple histograms on the current graphics device.

Author(s)

Steven L. Scott

See Also

Examples

data(airquality)
  histabunch(airquality)

Boom

Bayesian Object Oriented Modeling

v0.9.7
LGPL-2.1 | file LICENSE
Authors
Steven L. Scott is the sole author and creator of the BOOM project. Some code in the BOOM libraries has been modified from other open source projects. These include Cephes (obtained from Netlib, written by Stephen L. Moshier), NEWUOA (M.J.D Powell, obtained from Powell's web site), and a modified version of the R math libraries (R core development team). Original copyright notices have been maintained in all source files. In these cases, copyright claimed by Steven L. Scott is limited to modifications made to the original code. Google claims copyright for code written while Steven L. Scott was employed at Google from 2008 - 2018, but BOOM is not an officially supported Google project.
Initial release
2021-02-15

We don't support your browser anymore

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