| scale_y_pareto | R Documentation |
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 (%)",
...
)
sum_abs |
Total absolute value used for percentage conversion, typically
|
name |
Primary y-axis label. |
percent_name |
Secondary y-axis label. |
... |
Additional arguments passed to |
Use this with geom_pareto_line(cumulative = "raw") so the cumulative line
ends at 100% on the secondary axis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.