Statistics
ParetoChart
produce a Pareto chart
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
ParetoChart( dataset )
ParetoChart( dataset, options, plotoptions )
dataset
-
data set, DataSeries, or list of equations ; Array, Matrix, Vector, DataSeries, or DataFrame of values with 1 column of data
options
(optional) equation(s) of the form option=value, where option is one of color, columngraphoptions, cumulativesumoptions, labels, or showcumulative
plotoptions
options to be passed to the plots:-dualaxisplot command, or the Statistics:-ColumnGraph command
color : list, name, string; controls the colors for the column graph and the cumulative sum chart respectively. By default, the color list is [ "Niagara Azure", "Niagara Burgundy" ].
columngraphoptions : list; options to be passed to the Statistics:-ColumnGraph command
cumulativesumoptions : list; options to be passed to the Statistics:-CumulativeSumChart command
labels : list; labels corresponding to the labels below each of the bars in the column graph
showcumulative : truefalse; controls the display of a cumulative sum chart. The default is true.
The ParetoChart command is used to generate a plot of a tagged histogram of decreasing values and a curve indicating the percentage cumulative sum of the values.
When the showcumulative option is set to false, any plotoptions added to the ParetoChart command are passed to Statistics:-ColumnGraph. When showcumulative is set to true (the default), any plotoptions are passed to plots:-dualaxisplot.
with⁡Statistics:
data≔DataSeries⁡327,240,176,105,43,36,33,90,61,50,166,labels=Engine 1,Engine 2,Engine 3,Wire 1,Wire 2,Wire 3,Oil,Coils,Gear Box,Steam Line,Others
The ParetoChart command generates a plot of the sorted histogram of the values in a dataset and a curve that shows the percentage cumulative sum of the values:
ParetoChart⁡data,size=800,400
DF≔DataFrame⁡220,288,136,180|11.94,18.1,7.68,9.61|543421,58500118,4594539,undefined|Russia,China,USA,Mexico|Rubus,Vitis,Fragaria,Rubus|Crimson,Purple,Red,Indigo,columns=Energy,Carbohydrates,`Total Tons`,`Top Producer`,Genus,Color,rows=Raspberry,Grape,Strawberry,Blackberry
DF≔
ParetoChart⁡DFCarbohydrates,color=LightSteelBlue,OrangeRed
The columngraphoptions and cumulativesumchart options control plot options sent to the ColumnGraph and CumulativeSumChart commands respectively:
ParetoChart⁡DFEnergy,columngraphoptions=color=sort⁡DF,Energy,`>`Color,labels=,Energy
The ParetoChart command can also visualize results from the Tally command. In the following example, a 100-element sample is generated using the letters ["m", "a", "p", "l", "e"].
randomize⁡65:
randomdata≔RandomTools:-Generate⁡list⁡choose⁡m,a,p,l,e,100
randomdata≔m,m,a,m,a,m,a,a,p,e,p,p,p,p,m,l,m,e,l,m,p,l,a,m,l,l,l,e,a,p,e,m,l,p,a,m,e,e,p,m,e,e,m,e,e,a,m,p,e,a,l,m,m,l,m,e,a,p,a,m,m,a,l,p,p,m,l,a,e,m,m,p,a,p,a,a,e,p,m,p,a,m,a,p,e,a,l,l,l,a,l,p,a,m,l,p,a,l,e,l
Tally⁡randomdata
m=24,e=16,a=22,p=20,l=18
ParetoChart⁡Tally⁡randomdata,color=Crimson,Black,columngraphoptions=datasetlabels=none,axis1=tickmarks=rotation=0
The Statistics[ParetoChart] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
Statistics[Visualization]
Statistics[ScreePlot]
Download Help Document