Often pareto diagrams include an ogive line, which tracks the cumulative number of values across the bars. With the addition of an ogive, you can quickly estimate when a given percentage of the total data has been allocated to the major categories.
You need to include the qcc library to get pareto chart functionalty.
R Example
This example is similar to the barplot example. It shows the cumulative number of states within several regions. Along with the chart, the table of values is emitted by the R studio.pareto.chart(table(state.division), ylab = "Frequency")
Pareto chart analysis for table(state.division)
Frequency Cum.Freq. Percentage Cum.Percent.South Atlantic 8 8 16 16
Mountain 8 16 16 32
West North Central 7 23 14 46
New England 6 29 12 58
East North Central 5 34 10 68
Pacific 5 39 10 78
East South Central 4 43 8 86
West South Central 4 47 8 94
Middle Atlantic 3 50 6 100
Cumulative number of states within several regions |
No comments:
Post a Comment
Please help to combat malicious use of the Internet.