TKRmarginmatrix(x, delimiter = NULL, col = c("skyblue", "red", "red4", "orange", "orange4"), alpha = NULL, hscale = NULL, vscale = NULL, TKRpar = list(), ...)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.
This can be used to prevent overplotting.pairsVIM and
marginplot. par("oma") will be set
appropriately unless supplied (see
par).par).marginmatrix uses pairsVIM with a
panel function based on marginplot. The graphical parameter oma will be set unless
supplied as an argument.
TKRmarginmatrix behaves like marginmatrix,
but uses tkrplot to embed the plot
in a Tcl/Tk window. This is useful if the number
of variables is large, because scrollbars allow to move
from one part of the plot to another.
marginplot, pairsVIM,
scattmatrixMiss
data(sleep, package = "VIM")
## for missing values
x <- sleep[, 1:5]
x[,c(1,2,4)] <- log10(x[,c(1,2,4)])
marginmatrix(x)
## for imputed values
x_imp <- kNN(sleep[, 1:5])
x_imp[,c(1,2,4)] <- log10(x_imp[,c(1,2,4)])
marginmatrix(x_imp, delimiter = "_imp")
Run the code above in your browser using DataLab