simplehist | R Documentation |
Simple integer-valued histograms, for displaying count distributions.
simplehist( x , round=TRUE , ylab="Frequency" , ... )
x |
Vector of values to construct histogram from |
round |
When |
ylab |
Label on vertical axis |
... |
Other parameters to pass to plot |
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))
.
Richard McElreath
hist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.