Purpose: Constructs a mosaic plot for a twoway cross-tabulation.
Mosaic Graph DataSource: any (automatic data transfer if Crosstabulation).
Mosaic Graph Read/Write Properties
Name | Type | Description | Possible Values | Default Value |
barColor | Color array | The colors to be used for the bars. | Any valid Color. | Various. |
barWidth | int | Percentage of available space used by bars (affects bar gap). | 1-100 | 100 |
columnClassName | String | Name to be used as column header. | Any string. | "Column" |
columnLabelVariableName | String | The name of the column containing row labels. | Any string. | "Label" |
columnOrdering | String | The type of column ordering desired. Increasing and Decreasing refer to class frequencies. | "Alphabetical", "As Entered", "Decreasing", "Decreasing Alphabetical", "Increasing", "Increasing Alphabetical". |
"As Entered" |
drawVertical | boolean | Whether to make the bars vertical. | true,false | false |
frequencyVariableName | String | The name of the column containing class frequencies. | Any string. | "Frequency" |
numberOfColumns | int | Number of columns. | 1+ | 0 |
numberOfRows | int | Number of rows. | 1+ | 0 |
rotateClassLabels | boolean | Whether to make the bar labels vertical. | true,false | false |
rowClassName | String | Name to be used as row header. | Any string. | "Row" |
rowOrdering | String | The type of row ordering desired. Increasing and Decreasing refer to class frequencies. | "Alphabetical", "As Entered", "Decreasing", "Decreasing Alphabetical", "Increasing", "Increasing Alphabetical". |
"As Entered" |
rowLabelVariableName | String | The name of the column containing row labels. | Any string. | "Label" |
Other properties for a mosaic graph are inherited from the java.awt.Canvas class and from the general GraphicalStatbean class.
Mosaic Plot Code Sample - see Crosstabulation.
© 2025 Statgraphics Technologies, Inc.
The Plains, Virginia
CONTACT USHave you purchased Statgraphics Centurion or Sigma Express and need to download your copy?
CLICK HERE