Learn R Programming

rethinking (version 1.35)

simplehist: Simple histograms

Description

Simple integer-valued histograms, for displaying count distributions.

Usage

simplehist( x , ylab="Frequency" , xlab="Count" , ycounts=TRUE , adjust=1 , 
lcol="black" , bins=NULL , show.counts=0 , xlim=NULL , ylim=NULL , ... )

Arguments

x

Vector of values to construct histogram from

ylab

Label on vertical axis

xlab

Label on horizontal axis

ycounts

?

lcol

Line color

bins

Bins, defaults to zero and positive integers

show.counts

?

...

Other parameters to pass to plotting functions.

Value

Details

This function constructs clean histograms for count data. It needs to be rewritten, though.

References

McElreath 2011, Statistical Rethinking.

See Also

hist