BoxPlot.Create

Prototypes

static BoxPlot Create( DataObject dobj <, Matrix mXVarNames>, String sYVarName <, boolean bShow> )

static BoxPlot Create( String sDataName <, Matrix mX>, Matrix mY <, boolean bShow> )

Return Value

The return value is a reference to the newly created BoxPlot object.

Parameters

DataObject dobj
The DataObject containing the variables you want to plot.

Matrix mXVarNames
A vector containing the names of the variables you want to assign to the X axis.

String sYVarName
The name of the variable you want to assign to the Y axis.

boolean bShow
If bShow is true, the plot's window is displayed. If bShow is false, the plot's window is hidden. Calling this method without specifying bShow is equivalent to calling it with bShow equal to true.

String sDataName
The name to assign to the DataObject created internally by this method.

Matrix mX
A matrix whose columns determine the groups used to produce the boxes in the plot. This matrix is added to the same DataObject as the mY vector.

Matrix mY
A numeric vector containing coordinate data for the Y axis. This vector is used to create a DataObject and then that DataObject is used to create a BoxPlot.

Remarks

This method creates a box plot.

Example
gender = { M  M  M  M  M  M  M  M  M  M  F  F  F  F  F  F  F  F  F  F };
height = { 58 59 60 52 54 56 59 64 57 58 63 62 59 61 59 58 54 58 53 56 };
declare DataObject dobj = DataObject.Create( "Student Height" );
dobj.AddVar( "Gender", "Gender", gender );
dobj.AddVar( "Height", "Height", height );
BoxPlot.Create( dobj, "Gender", "Height" );
See Also

BoxPlot.CreateWithFreq