paretoChart {qAnalyst} | R Documentation |
paretoChart
plots Pareto charts for categorical variables. Plot is perfomed by lattice graphics.
paretoChart(x, mergeThr = 0.9, addLine = TRUE, abbrev = FALSE)
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. |
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.
paretoChart
returns no value
A great part of this code comes from pareto.chart function of Luca Scrucca's qcc package.
Giorgio Spedicato
Montgomery, statistical quality control
No see also
#MASS data set example
require(MASS)
data(Cars93)
paretoData=Cars93$Manufacturer[1:45]
paretoChart(x=paretoData,mergeThr=.8)