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