Mosaic plot with information about missing/imputed values

Description

Create a mosaic plot with information about missing/imputed values.

Usage



mosaicMiss(x, delimiter = NULL, highlight = NULL, 
  selection = c("any","all"), 
  plotvars = NULL, 
  col = c("skyblue", "red", "orange"),
  labels = NULL, miss.labels = TRUE, ...)

Arguments

Examples

data(sleep, package = "VIM")
## for missing values
mosaicMiss(sleep, highlight = 4,
plotvars = 8:10, miss.labels = FALSE)

## for imputed values
mosaicMiss(kNN(sleep), highlight = 4,
plotvars = 8:10, delimiter = "_imp", miss.labels = FALSE)

Details

Mosaic plots are graphical representations of multi-way contingency tables. The frequencies of the different cells are visualized by area-proportional rectangles (tiles). Additional tiles are be used to display the frequencies of missing/imputed values. Furthermore, missing/imputed values in a certain variable or combination of variables can be highlighted in order to explore their structure.

Value

An object of class “structable” is returned invisibly.

Note

This function uses the highly flexible strucplot framework of package vcd.pairsVIM

Author(s) Andreas Alfons, modifications by Bernd Prantner

References