paretoChart {qAnalyst}R Documentation

function to plot Pareto charts

Description

paretoChart plots Pareto charts for categorical variables. Plot is perfomed by lattice graphics.

Usage

paretoChart(x, mergeThr = 0.9, addLine = TRUE, abbrev = FALSE)

Arguments

x

data vector treated as character variable

mergeThr

cumulated probability after which categories are merged into generic category "Other".

addLine

boolean. If true, cumulated frequency line is plot out

abbrev

boolean. If true, abbreviation of categories names written on x axis is done to obtain a better print.

Details

Different categories are sorted by absolute frequency in decreasing order. Categories with same absolute frequency are sorted according to their appearing order in the given vector.

Value

paretoChart returns no value

Note

A great part of this code comes from pareto.chart function of Luca Scrucca's qcc package.

Author(s)

Giorgio Spedicato

References

Montgomery, statistical quality control

See Also

No see also

Examples

#MASS data set example
require(MASS)
data(Cars93)
paretoData=Cars93$Manufacturer[1:45]
paretoChart(x=paretoData,mergeThr=.8)

[Package qAnalyst version 0.6.4 Index]