plots - Maple Programming Help

Home : Support : Online Help : System : Libraries and Packages : Deprecated Packages and Commands : Deprecated commands : plots/pareto(deprecated)

plots

 pareto
 produce a Pareto diagram

 Calling Sequence pareto(freq, opts)

Parameters

 freq - list of non-negative numbers indicating frequencies opts - (optional) options to plot, or misc=string, or tags=list

Description

 • 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.

Examples

Important: The plots[pareto] command has been deprecated. Use the superseding command Statistics[ParetoChart] instead.

 > $\mathrm{with}\left(\mathrm{plots},\left[\mathrm{pareto}\right]\right):$
 > $\mathrm{Pdata}≔\left[\mathrm{Engine 1}=327,\mathrm{Engine 2}=240,\mathrm{Engine 3}=176,\mathrm{Wire 1}=105,\mathrm{Wire 2}=43,\mathrm{Wire 3}=36,\mathrm{Oil}=33,\mathrm{Coils}=90,\mathrm{Gear Box}=61,\mathrm{Steam line}=50,\mathrm{Others}=166\right]:$

Separate the frequencies from the labels

 > $\mathrm{Fdata}≔\mathrm{map}\left(\mathrm{rhs},\mathrm{Pdata}\right):$
 > $\mathrm{Lab}≔\mathrm{map}\left(\mathrm{lhs},\mathrm{Pdata}\right):$

Produce and display a Pareto diagram

 > $\mathrm{pareto}\left(\mathrm{Fdata},\mathrm{tags}=\mathrm{Lab},\mathrm{title}=\mathrm{Plant Problems}\right)$

This time treat the miscellaneous items separately

 > $\mathrm{pareto}\left(\mathrm{Fdata},\mathrm{tags}=\mathrm{Lab},\mathrm{misc}=\mathrm{Others},\mathrm{title}=\mathrm{Plant Problems}\right)$

Give numbers as percentages instead of raw frequencies. One could also normalize the costs and give the actual amount of money.

 > $\mathrm{Fdata_norm}≔\mathrm{map}\left(\left(x,s\right)↦\frac{100\cdot x}{s},\mathrm{Fdata},\mathrm{+}\left(\mathrm{op}\left(\mathrm{Fdata}\right)\right)\right):$
 > $\mathrm{pareto}\left(\mathrm{Fdata_norm},\mathrm{tags}=\mathrm{Lab},\mathrm{misc}=\mathrm{Others},\mathrm{title}=\mathrm{Percentages of problems}\right)$