-
Notifications
You must be signed in to change notification settings - Fork 607
/
Copy pathsimplehist.Rd
31 lines (30 loc) · 975 Bytes
/
simplehist.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
\name{simplehist}
\alias{simplehist}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Simple histograms}
\description{
Simple integer-valued histograms, for displaying count distributions.
}
\usage{
simplehist( x , round=TRUE , ylab="Frequency" , ... )
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{x}{Vector of values to construct histogram from}
\item{round}{When \code{TRUE}, rounds values in \code{x} before plotting}
\item{ylab}{Label on vertical axis}
\item{...}{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 \code{plot(table(x))}.
}
\value{
}
\references{}
\author{Richard McElreath}
\seealso{\code{\link{hist}}}
\examples{
}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{ }