% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats-base.R
\name{geom_quantile}
\alias{geom_quantile}
\title{Quantile regression lines}
\usage{
geom_quantile(
  mapping = NULL,
  data = NULL,
  quantiles = c(0.25, 0.5, 0.75),
  linewidth = NULL,
  alpha = NULL
)
}
\arguments{
\item{mapping, data}{Standard layer overrides.}

\item{quantiles}{Quantiles to fit (default the quartiles).}

\item{linewidth, alpha}{Appearance.}
}
\value{
A \link{Layer} to add with \code{+}.
}
\description{
Fits a linear model to chosen conditional quantiles, showing how the
spread of \code{y} changes with \code{x} — not just its mean, as \code{\link[=geom_smooth]{geom_smooth()}}
does.
}
\examples{
ggnext(cars, aes(speed, dist)) +
  geom_point(alpha = 0.5) +
  geom_quantile()
}
