pareto: Pareto Chart

View source: R/pareto.h.R

paretoR Documentation

Pareto Chart

Description

Function for making pareto charts.

Usage

pareto(data, x, counts = NULL, angle = 0)

Arguments

data

the data as a data frame

x

a string naming the variable from data that contains the values used for the chart

counts

a string naming the variable from data that contains the counts for the values (optional)

angle

a number from 0 to 45 defining the angle of the x-axis labels, where 0 degrees represents completely horizontal labels.

Value

A results object containing:

results$pareto a Pareto chart

Examples

set.seed(1337)

X <- sample(c('A','B','C','D','E','F'), 100, replace=TRUE)
dat <- data.frame(X = X)

scatr::pareto(dat, x = 'X')


raviselker/scatr documentation built on Nov. 23, 2022, 8:52 p.m.