Description Usage Arguments Details Note Author(s) References See Also Examples
View source: R/TKRscattmatrixMiss.R
Scatterplot matrix in which observations with missing/imputed values in certain variables are highlighted.
1 2 3 4 |
x |
a matrix or |
delimiter |
a character-vector to distinguish between variables and
imputation-indices for imputed variables (therefore, |
highlight |
a vector giving the variables to be used for highlighting.
If |
selection |
the selection method for highlighting missing/imputed
values in multiple highlight variables. Possible values are |
plotvars |
a vector giving the variables to be plotted. If |
col |
a vector of length three giving the colors to be used in the plot. The second/third color will be used for highlighting missing/imputed values. |
alpha |
a numeric value between 0 and 1 giving the level of
transparency of the colors, or |
hscale |
horizontal scale factor for plot to be embedded in a Tcl/Tk window (see ‘Details’). The default value depends on the number of variables. |
vscale |
vertical scale factor for the plot to be embedded in a Tcl/Tk window (see ‘Details’). The default value depends on the number of variables. |
TKRpar |
a list of graphical parameters to be set for the plot to be
embedded in a Tcl/Tk window (see ‘Details’ and
|
... |
for |
scattmatrixMiss
uses pairsVIM
with a panel function
that allows highlighting of missing/imputed values.
If interactive=TRUE
, the variables to be used for highlighting can be
selected interactively. Observations with missing/imputed values in any or
in all of the selected variables are highlighted (as determined by
selection
). A variable can be added to the selection by clicking in
a diagonal panel. If a variable is already selected, clicking on the
corresponding diagonal panel removes it from the selection. Clicking
anywhere else quits the interactive session.
The graphical parameter oma
will be set unless supplied as an
argument.
TKRscattmatrixMiss
behaves like scattmatrixMiss
, 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.
Some of the argument names and positions have changed with version 1.3
due to a re-implementation and for more consistency with other plot
functions in VIM
. For back compatibility, the argument
colcomb
can still be supplied to ...{}
and is handled
correctly. Nevertheless, it is deprecated and no longer documented. Use
highlight
instead. The arguments smooth
, reg.line
and
legend.plot
are no longer used and ignored if supplied.
Andreas Alfons, Matthias Templ, modifications by Bernd Prantner
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.
A. Kowarik, M. Templ (2016) Imputation with R package VIM. Journal of Statistical Software, 74(7), 1-16
1 2 3 4 5 6 7 8 9 10 | data(sleep, package = "VIM")
## for missing values
x <- sleep[, 1:5]
x[,c(1,2,4)] <- log10(x[,c(1,2,4)])
scattmatrixMiss(x, highlight = "Dream")
## for imputed values
x_imp <- kNN(sleep[, 1:5])
x_imp[,c(1,2,4)] <- log10(x_imp[,c(1,2,4)])
scattmatrixMiss(x_imp, delimiter = "_imp", highlight = "Dream")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.