simplehist: Simple histograms

View source: R/plotting.r

simplehistR Documentation

Simple histograms

Description

Simple integer-valued histograms, for displaying count distributions.

Usage

simplehist( x , round=TRUE , ylab="Frequency" , ... )

Arguments

x

Vector of values to construct histogram from

round

When TRUE, rounds values in x before plotting

ylab

Label on vertical axis

...

Other parameters to pass to plot

Details

This function constructs clean histograms for count data. Non-integer data can be rounded to nearest integer before plotting. Internally, this function is little more than plot(table(x)).

Author(s)

Richard McElreath

See Also

hist


rmcelreath/rethinking documentation built on Sept. 18, 2023, 2:01 p.m.