BoxPlot.AddVar

Prototypes

void AddVar( String sVarName )

Parameters

String sVarName
The name of the variable in the associated DataObject you want to add to the plot as a new X axis variable.

Remarks

This method adds a new variable to the X axis of the 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 );
declare BoxPlot plot;
plot = BoxPlot.Create( dobj, "Height" );
plot.AddVar( "Gender" );
See Also

DataObject.AddVar