mosaicMiss(x, delimiter = NULL, highlight = NULL, selection = c("any", "all"), plotvars = NULL, col = c("skyblue", "red", "orange"), labels = NULL, miss.labels = TRUE, ...)
data.frame
.x
needs to have
colnames
). If given, it is used to determine the corresponding
imputation-index for any imputed variable (a logical-vector indicating which
values of the variable have been imputed). If such imputation-indices are
found, they are used for highlighting and the colors are adjusted according
to the given colors for imputed variables (see col
).NULL
(the default), all variables are used for highlighting."any"
(highlighting of missing/imputed values in any of the highlight
variables) and "all"
(highlighting of missing/imputed values in
all of the highlight variables).NULL
(the default), all variables are plotted.labeling_border
.mosaic
."structable"
is returned invisibly.
strucplot
framework: Visualizing multi-way contingency tables with
vcd. Journal of Statistical Software, 17 (3), 1--48.M. Templ, A. Alfons, P. Filzmoser (2012) Exploring incomplete data using visualization tools. Journal of Advances in Data Analysis and Classification, Online first. DOI: 10.1007/s11634-011-0102-y.
spineMiss
, mosaic
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)
Run the code above in your browser using DataLab