Learn R Programming

rethinking (version 2.13)

simplehist: 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

Value

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)).

See Also

hist