MosaicPlot.SetOtherThreshold

Prototypes

void SetOtherThreshold( double dPercentage )

Parameters

double dPercentage
The percentage (0 to 100) of the total number of observations below which observations are placed in the "Others" category.

Remarks

A mosaic plot displays the relative proportions of categorical variables. If a category of the X variable contains relatively few observations, that category is merged into a special category called "Others". The default threshold at which this occurs is 2 percent, which means that if a category contains fewer than 2 percent of the total number of observations, that category is merged into the "Others" category.

Example
vehicle = { "car", "truck", "car", "car", "truck", "van", "motorcycle" };
age = { "new", "new", "old", "new", "old", "old", "new" };
declare DataObject dobj = DataObject.Create( "Vehicles" );
dobj.AddVar( "vehicle", "Vehicle", vehicle );
dobj.AddVar( "age", "Age", age );
declare MosaicPlot plot = MosaicPlot.Create( dobj, "vehicle", "age", false );
plot.SetOtherThreshold( 20 );
plot.ShowWindow();