struc_sieve: Panel-generating Function for Sieve Plots
Description
Panel-generating function for strucplot
returning a function
producing sieve plots.Usage
struc_sieve(sievetype = c("observed","expected"))
Arguments
sievetype
logical indicating whether rectangles should be filled
according to observed
or expected
frequencies.
Value
- A function with arguments:
- residualstable of residuals.
- observedtable of observed values.
- expectednot used by
struc_sieve
. - spacingobject of class
"unit"
specifying the space
between the tiles. - gplist of
gpar
objects used for the drawing the tiles. - split_verticalvector of logicals indicating, for each
dimension of the table, the split direction.
example
## Titanic data
data(Titanic)
strucplot(Titanic, panel = struc_sieve)Details
This function is usually called by strucplot
(typically
when called by sieve
) and returns a function used by
strucplot
to produce sieve plots.References
H. Riedwyl & M. Sch�pbach (1994),
Parquet diagram to plot contingency tables.
In F. Faulbaum (ed.),
Softstat '93: Advances in Statistical Software, 293--299.
Gustav Fischer, New York. M. Friendly (2000),
Visualizing Categorical Data,
SAS Institute, Cary, NC.