paretochart: Pareto chart

Description Usage Arguments Value Author(s) Examples

View source: R/paretochart.R

Description

Creates a pareto chart from a categorical variable

Usage

1
2
paretochart(x, main, ylab = "Frequency", xlab = "", cumperc.by = 20,
  cex = 0.8, ...)

Arguments

x

Categorical vector to be plotted

main

Plot title

ylab

Label on y axis

xlab

Label on x axis

cumperc.by

Grid interval

cex

Number indicating the amount by which text and symbols should be magnified.

...

Further arguments to plot function

Value

A table of frequencies and percentages from the pareto analysis

Author(s)

Jacob Anhoej

Examples

1
2
x <- rep(LETTERS[1:9], c(256, 128, 64, 32, 16, 8, 4, 2, 1))
paretochart(x)

Example output

qicharts will no longer be maintained. Please consider moving to qicharts2: https://anhoej.github.io/qicharts2/.
  Frequency Cumulative Frequency Percentage Cumulative Percentage
A       256                  256 50.0978474              50.09785
B       128                  384 25.0489237              75.14677
C        64                  448 12.5244618              87.67123
D        32                  480  6.2622309              93.93346
E        16                  496  3.1311155              97.06458
F         8                  504  1.5655577              98.63014
G         4                  508  0.7827789              99.41292
H         2                  510  0.3913894              99.80431
I         1                  511  0.1956947             100.00000

qicharts documentation built on Aug. 29, 2017, 1:04 a.m.