plots
pareto
produce a Pareto diagram
Calling Sequence
Parameters
Description
Examples
pareto(freq, opts)
freq
-
list of non-negative numbers indicating frequencies
opts
(optional) options to plot, or misc=string, or tags=list
Important: The plots[pareto] command has been deprecated. Use the superseding command Statistics[ParetoChart] instead.
A Pareto diagram is a chart with the following elements: a tagged histogram of decreasing frequencies and a curve indicating the cumulative frequencies.
Dashed vertical lines indicate the 25%, 50%, and 75% marks.
If the tags parameter is omitted, then Maple assigns consecutive positive integer tags to the elements of the frequency list.
The misc parameter specifies the tag of the frequency list element that represents the miscellaneous data. The miscellaneous data is placed at the end of the sequence of items, so its bar is displayed at the top of the stack of bars.
To get percentages, normalize the frequencies so that they total 100.
with⁡plots,pareto:
Pdata≔`Engine 1`=327,`Engine 2`=240,`Engine 3`=176,`Wire 1`=105,`Wire 2`=43,`Wire 3`=36,Oil=33,Coils=90,`Gear Box`=61,`Steam line`=50,Others=166:
Separate the frequencies from the labels
Fdata≔map⁡rhs,Pdata:
Lab≔map⁡lhs,Pdata:
Produce and display a Pareto diagram
pareto⁡Fdata,tags=Lab,title=`Plant Problems`
This time treat the miscellaneous items separately
pareto⁡Fdata,tags=Lab,misc=Others,title=`Plant Problems`
Give numbers as percentages instead of raw frequencies. One could also normalize the costs and give the actual amount of money.
Fdata_norm≔map⁡x,s↦100⋅xs,Fdata,`+`⁡op⁡Fdata:
pareto⁡Fdata_norm,tags=Lab,misc=Others,title=`Percentages of problems`
See Also
Statistics[ParetoChart]
Download Help Document