Learn R Programming

qualityTools (version 1.55)

paretoChart: Pareto Chart

Description

function to create a pareto chart.

Usage

paretoChart(x, weight, showTable = TRUE, las = 0, main, col, border, xlab, ylab = "Frequency", percentVec, ...)

Arguments

x
vector of qualitative values.
weight
vector with weights for x (not yet implemented!)
showTable
logical value specifing whether a frequeny table will be added above the graph. By default showTable is set to ‘TRUE’.
las
graphical parameter. Numeric in 0,1,2,3 giving the style of axis labels (see: par).
main
an overall title for the plot: see title.
col
numerical value or character string defining the fill-color of the bars.
border
numerical value or character string defining the border-color of the bars.
xlab
a title for the x axis: title.
ylab
a title for the y axis: title.
percentVec
numerical vector giving the position and values of tick marks for percentage axis.
...
further graphical parameters.

Value

paretoChart returns a data.frame of percentages.

Examples

Run this code

#artifical defects dataset
defects = LETTERS[runif(80, 1, 10)]
#paretoChart of the defects
paretoChart(defects) 

Run the code above in your browser using DataLab