Histogram.Create

Prototypes

static Histogram Create( DataObject dobj, String sXVarName <, boolean bShow> )

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

Return Value

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

Parameters

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

String sXVarName
The name of the variable you want to assign to the X 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 numeric vector containing the data you want to plot. This vector is used to create a DataObject and then that DataObject is used to create a Histogram.

Remarks

This method creates a histogram.

Example
height = T({ 58 59 60 52 54 56 59 64 57 58 63 62 59 61 59 58 54 58 53 56 });
declare DataObject dobj;
dobj = DataObject.Create( "Student Height", "Height", height );
Histogram.Create( dobj, "Height" );
See Also

Histogram.CreateWithFreq