Horizontally centered bars, one per stage, whose widths are proportional to the value — the standard conversion/drop-off view.
geom_funnel(
mapping = NULL,
data = NULL,
alpha = NULL,
label = TRUE,
label_size = NULL
)A Layer to add with +.
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()
#> <ggnext plot>
#> data: 4 x 2
#> aes: x = stage, y = n, color = stage
#> layers: 1
#> coord: cartesian
#> mode: static