Statistics - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Statistics : Statistics/ParetoChart

Statistics

  

ParetoChart

  

produce a Pareto chart

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

ParetoChart( dataset )

ParetoChart( dataset, options, plotoptions )

Parameters

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

Options

• 

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.

Description

• 

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.

Examples

withStatistics:

dataDataSeries327,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

DataSeries327240176105433633906150166,labels=Engine 1,Engine 2,Engine 3,Wire 1,Wire 2,Wire 3,Oil,Coils,Gear Box,Steam Line,Others,datatype=anything

(1)

The ParetoPlot 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:

ParetoChartdata,size=800,400

DFDataFrame220,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

DataFrame22011.94543421RussiaRubusCrimson28818.158500118ChinaVitisPurple1367.684594539USAFragariaRed1809.61undefinedMexicoRubusIndigo,rows=Raspberry,Grape,Strawberry,Blackberry,columns=Energy,Carbohydrates,Total Tons,Top Producer,Genus,Color

(2)

ParetoChartDFCarbohydrates,color=LightSteelBlue,OrangeRed

The columngraphoptions and cumulativesumchart options control plot options sent to the ColumnGraph and CumulativeSumChart commands respectively:

ParetoChartDFEnergy,columngraphoptions=color=sortDF,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"].

randomize65:

randomdataRandomTools:-Generatelistchoosem,a,p,l,e,100

randomdatam,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

(3)

Tallyrandomdata

l=18,m=24,a=22,p=20,e=16

(4)

ParetoChartTallyrandomdata,color=Crimson,Black,columngraphoptions=datasetlabels=none,axis1=tickmarks=rotation=0

Compatibility

• 

The Statistics[ParetoChart] command was introduced in Maple 2018.

• 

For more information on Maple 2018 changes, see Updates in Maple 2018.

See Also

Statistics

Statistics[Visualization]

Statistics[ScreePlot]