Learn R Programming

adas.utils (version 1.0.0)

pareto_chart: Pareto's chart

Description

This is a generic function for Pareto's chart.

Usage

pareto_chart(obj, ...)

Value

a Pareto chart of the effects of the model

Arguments

obj

an object

...

further parameters to specialized functions

See Also

pareto_chart.data.frame() pareto_chart.lm()

Examples

Run this code
# For a data frame:
library(tibble)
set.seed(1)
tibble(
  val=rnorm(10, sd=5),
  cat=LETTERS[1:length(val)]
  ) %>%
  pareto_chart(labels=cat, values=val)

# For a linear model:
pareto_chart(lm(Y~A*B*C*D, data=filtration))

Run the code above in your browser using DataLab