% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats-base.R
\name{geom_qq}
\alias{geom_qq}
\alias{geom_qq_line}
\title{Quantile-quantile plot}
\usage{
geom_qq(
  mapping = NULL,
  data = NULL,
  distribution = stats::qnorm,
  color = NULL,
  size = NULL,
  alpha = NULL
)

geom_qq_line(
  mapping = NULL,
  data = NULL,
  distribution = stats::qnorm,
  color = NULL,
  linewidth = NULL,
  alpha = NULL
)
}
\arguments{
\item{mapping, data}{Standard layer overrides. Map the values to \code{x}.}

\item{distribution}{Quantile function of the reference distribution
(default \link[stats:qnorm]{stats::qnorm}).}

\item{color, size, alpha}{Appearance.}

\item{linewidth}{Line width for the reference line.}
}
\value{
A \link{Layer} to add with \code{+}.
}
\description{
Sample quantiles against the quantiles of a reference distribution;
points on a straight line mean the sample follows it. Add
\code{\link[=geom_qq_line]{geom_qq_line()}} for the reference.
}
\examples{
set.seed(1)
d <- data.frame(v = rnorm(100))
ggnext(d, aes(v)) + geom_qq() + geom_qq_line()
}
