StatBean Name:MosaicPlot

Purpose: Constructs a mosaic plot for a twoway cross-tabulation.

DataSource: any (automatic data transfer if Crosstabulation).


Read/Write Properties
NameTypeDescriptionPossible ValuesDefault Value
barColorColor arrayThe colors to be used for the bars.Any valid Color.Various.
barWidthintPercentage of available space used by bars (affects bar gap).1-100100
columnClassNameStringName to be used as column header.Any string."Column"
columnLabelVariableNameStringThe name of the column containing row labels.Any string."Label"
columnOrderingStringThe type of column ordering desired. Increasing and Decreasing refer to class frequencies."Alphabetical",
"As Entered",
"Decreasing",
"Decreasing Alphabetical",
"Increasing",
"Increasing Alphabetical".
"As Entered"
drawVerticalbooleanWhether to make the bars vertical.true,falsefalse
frequencyVariableNameStringThe name of the column containing class frequencies.Any string."Frequency"
numberOfColumnsintNumber of columns.1+0
numberOfRowsintNumber of rows.1+0
rotateClassLabelsbooleanWhether to make the bar labels vertical.true,falsefalse
rowClassNameStringName to be used as row header.Any string."Row"
rowOrderingStringThe type of row ordering desired. Increasing and Decreasing refer to class frequencies."Alphabetical",
"As Entered",
"Decreasing",
"Decreasing Alphabetical",
"Increasing",
"Increasing Alphabetical".
"As Entered"
rowLabelVariableNameStringThe name of the column containing row labels.Any string."Label"

Other properties are inherited from the java.awt.Canvas class and from the general GraphicalStatbean class.

Code Sample - see Crosstabulation.