void SetTwoWay( <boolean bTwoWay> )
boolean bTwoWay
If bTwoWay is true, the plot is configured as a two-way mosaic plot. If bTwoWay is false, the plot is configured as an N-way mosaic plot. Calling this method
without a parameter is equivalent to calling it with bTwoWay equal to true.
This method configures the plot as either a two-way or an N-way mosaic plot. By default, mosaic plots are created as N-way plots.
A two-way mosaic plot is a plot of two variables. The variable for the horizontal axis is created by enumerating all permutations of the values of the X variables.
An N-way mosaic plot is defined recursively as follows: A plot is created using the Y axis variable and the first X variable. Then, each category of the first X variable is subdivided using values of the second X variable. This process repeats for all remaining X variables.
vehicles = { "car" "new" "blue", "car" "new" "red", "car" "new" "red", "car" "old" "blue", "car" "old" "blue", "car" "old" "blue", "car" "old" "red", "truck" "new" "blue", "truck" "new" "red", "truck" "old" "blue", "truck" "old" "red", "truck" "old" "red" }; declare DataObject dobj = DataObject.Create( "Vehicles" ); dobj.AddVars( {"vehicle" "age" "color"}, vehicles ); declare MosaicPlot plot; plot = MosaicPlot.Create( dobj, {"age", "color"}, "vehicle", false ); plot.SetTwoWay(); plot.ShowWindow();