% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats-base.R
\name{geom_dotplot}
\alias{geom_dotplot}
\title{Dot plot}
\usage{
geom_dotplot(
  mapping = NULL,
  data = NULL,
  binwidth = NULL,
  color = NULL,
  size = NULL,
  alpha = NULL
)
}
\arguments{
\item{mapping, data}{Standard layer overrides. Map the values to \code{x}.}

\item{binwidth}{Bin width in data units.}

\item{color, size, alpha}{Appearance.}
}
\value{
A \link{Layer} to add with \code{+}.
}
\description{
A histogram built from one dot per observation, stacked within its bin.
Better than bars for small samples, where it shows every data point.
}
\examples{
ggnext(cars, aes(speed)) + geom_dotplot(binwidth = 2)
}
