Statistics - Maple Help

Online Help

All Products    Maple    MapleSim


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

Statistics

  

CumulativeSumChart

  

generate cumulative sum charts

 

Calling Sequence

Parameters

Description

Options

Examples

Calling Sequence

CumulativeSumChart(X, options, plotoptions)

CumulativeSumChart['interactive'](X)

Parameters

X

-

data

options

-

(optional) equation(s) of the form option=value where option is one of color, format, markers, orientation, scale, or xcoords; specify options for generating the cumulative sum chart

plotoptions

-

options to be passed to the plots[display] command

Description

• 

The CumulativeSumChart command generates a cumulative sum chart for the specified data. Several formats are available for multiple data sets: default, stacked and percent stacked. See format option below for more information.

• 

The first parameter X is either a single data sample - given as e.g. a Vector - or a list of data samples. Note, that the individual samples may be of variable size.

• 

If the ['interactive'] option is used, then a dialog box appears that allows for customized creation of the plot.

Options

  

The options argument can contain one or more of the options shown below. All unrecognized options will be passed to the plots[display] command. See plot[options] for details.

• 

color=name, list, or range

  

This option specifies colors for the individual data sets. When a list of colors is given, each of the cumulative sums will be colored with the corresponding color in the list. If a range of colors is given, the colors will be generated by selecting an appropriate number of equally-spaced points in the corresponding hue range.

• 

format=default or stacked

  

By default, individual data sets are displayed side-by-side as 3-D polygons. A stacked cumulative sum chart shows related data groups, one on top of the other. A percent cumulative sum chart is similar to a stacked cumulative sum chart, except that it is rescaled to a height of 1 while preserving proportionality. If scale is set to relative and format is set to stacked then a percent stacked plot will be generated.

• 

markers=truefalse

  

This option specifies whether the original data points should appear on the plot. The default value is true.

• 

orientation=vertical or horizontal

  

This option specifies whether the vertical or the horizontal layout should be used. The default value is vertical.

• 

scale=absolute or relative

  

This option controls whether the absolute or relative data scale should be used. If scale is set to relative and format is set to default then all data samples will be rescaled so that their range belongs to an interval between -1 and 1. If scale is set to relative and format is set to stacked then a percent stacked plot will be generated.

• 

xcoords=default or list

  

This option specifies the x-coordinates of the data points. By default, the x-coordinates of the points are 1, 2, 3, etc.

Examples

withStatistics:

A1,2,3,4,2,3,1:

B1,5,1,0,2,1,1:

C1,2,1,3,1,4,2:

The command to create the plot from the Plotting Guide using this data is

CumulativeSumChartA,B,C,gridlines=true

The CumulativeSumChart command also accepts a Matrix. The columns are understood as individual data samples.

MA|B|C

M111252311403221314112

(1)

CumulativeSumChartM,gridlines=true

Other examples:

CumulativeSumChartA,B,C,format=stacked,color=Maroon..Goldenrod,title=Stacked Cumulative Sum Chart,gridlines=true

CumulativeSumChartA,B,C,format=stacked,scale=relative,color=Blue,title=Percent Stacked Cumulative Sum Chart,gridlines=true

A5,2,5,8,4,5,10,5:

CumulativeSumChartA,color=Orange,thickness=3,symbol=circle,symbolsize=10,legend=Data Set A

See Also

Statistics

Statistics[LineChart]

Statistics[PointPlot]

Statistics[Visualization]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam