paretoChart | R Documentation |
Computes a table of statistics and plot a Pareto chart.
paretoChart(data, ...) ## S3 method for class 'paretoChart' plot(x, title, xlab, ylab = "Frequency", ylab2 = "Cumulative percentage", ylim, col = blues.colors(nlevels), ...)
data |
a vector of values. |
plot |
a logical specifying if the chart should be provided ( |
x |
an object of class |
title |
a character string specifying the main title. Set |
xlab |
a string specifying the label for the x-axis. |
ylab |
a string specifying the label for the y-axis. |
ylab2 |
a string specifying the label for the second y-axis on the right side. |
ylim |
a numeric vector specifying the limits for the y-axis. |
col |
a value for the color, a vector of colors, or a palette for the bars. See the help for |
... |
catch other optional arguments. |
A Pareto chart is a barplot where the categories are ordered in non increasing order, and a line is also added to show the cumulative sum.
Returns an object of class 'paretoChart'
containing the descriptive statistics used to draw the Pareto chart. This object has associated a print
and plot
method.
Luca Scrucca
Mason, R.L. and Young, J.C. (2002) Multivariate Statistical Process Control with Industrial Applications, SIAM.
Montgomery, D.C. (2013) Introduction to Statistical Quality Control, 7th ed. New York: John Wiley & Sons.
Ryan, T. P. (2011), Statistical Methods for Quality Improvement, 3rd ed. New York: John Wiley & Sons, Inc.
Scrucca, L. (2004). qcc: an R package for quality control charting and statistical process control. R News 4/1, 11-17.
Wetherill, G.B. and Brown, D.W. (1991) Statistical Process Control. New York: Chapman & Hall.
barplot
defect <- c(80, 27, 66, 94, 33) names(defect) <- c("price code", "schedule date", "supplier code", "contact num.", "part num.") pc = paretoChart(defect, ylab = "Error frequency") pc plot(pc) plot(paretoChart(defect, ylab = "Error frequency"), col=rainbow(length(defect)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.