scale_y_pareto() configures a primary y-axis for absolute values and a
secondary right-side axis that maps cumulative totals to percentages.
scale_y_pareto(
sum_abs = NULL,
name = ggplot2::waiver(),
percent_name = "Cumulative (%)",
...
)Total absolute value used for percentage conversion, typically
sum(abs(y)) from the source data. When NULL (default), the secondary
axis is scaled to the current primary-axis maximum.
Primary y-axis label.
Secondary y-axis label.
Additional arguments passed to ggplot2::scale_y_continuous().
Use this with geom_pareto_line(cumulative = "raw") so the cumulative line
ends at 100% on the secondary axis.