pareto_chart.data.frame: Pareto's chart

pareto_chart.data.frameR Documentation

Pareto's chart

Description

Create a Pareto chart for a data frame.

Usage

## S3 method for class 'data.frame'
pareto_chart(obj, labels, values, ...)

Arguments

obj

a data frame

labels

the column with the labels of the data frame

values

the column with the values of the data frame

...

further parameters (currently unused)

Value

a Pareto chart (GGPlot2 object) of the data frame

Invisibly returns a data frame with the absolute values of the data frame, their sign, and the cumulative value.

Examples

library(tibble)
set.seed(1)
tibble(
  val=rnorm(10, sd=5),
  cat=LETTERS[1:length(val)]
  ) %>%
  pareto_chart(labels=cat, values=val)

adas.utils documentation built on April 12, 2025, 1:52 a.m.