% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geoms-layout.R
\name{geom_funnel}
\alias{geom_funnel}
\title{Conversion funnel}
\usage{
geom_funnel(
  mapping = NULL,
  data = NULL,
  alpha = NULL,
  label = TRUE,
  label_size = NULL
)
}
\arguments{
\item{mapping, data}{Standard layer overrides. Map the stage to \code{x}
(ordered top to bottom) and the count to \code{y}.}

\item{alpha}{Bar opacity.}

\item{label}{Draw the stage label and value inside each bar.}

\item{label_size}{Label size in px.}
}
\value{
A \link{Layer} to add with \code{+}.
}
\description{
Horizontally centered bars, one per stage, whose widths are proportional
to the value — the standard conversion/drop-off view.
}
\examples{
d <- data.frame(
  stage = factor(c("Visits", "Signups", "Trials", "Paid"),
                 levels = c("Visits", "Signups", "Trials", "Paid")),
  n = c(10000, 3200, 1100, 420)
)
ggnext(d, aes(stage, n, color = stage)) + geom_funnel() + theme_void()
}
