matrixplot(x, delimiter = NULL, sortby = NULL, col = c("red","orange"),
gamma = 2.2, fixup = TRUE, xlim = NULL, ylim = NULL, main = NULL,
sub = NULL, xlab = NULL, ylab = NULL, axes = TRUE, labels = axes,
xpd = NULL, interactive = TRUE, ...)TKRmatrixplot(x, ..., delimiter = NULL, hscale = NULL, vscale = NULL,
TKRpar = list())
iimagMiss(x, delimiter = NULL, sortby = NULL, col = c("red","orange"),
main = NULL, sub = NULL, xlab = NULL, ylab = NULL, xlim = NULL,
ylim = NULL, axes = TRUE, xaxlabels = NULL, las = 3,
interactive = TRUE, ...)
data.frame
.x
needs
to have colnames
). If given, it is used to determine the
corNULL
to plot without sorting.RGB
". HCL colors need to be specified as
objects of class "
hex
).hex
).NULL
, it defaults to TRUE
unless axis limits are specified.NULL
, the column names of x
will be used.par
).matrixplot
and iimagMiss
, further graphical
parameters to be passed to plot.window
,
title
and par
).-Inf
and Inf
are always assigned the
begin and end color, respectively, of the continuous color scheme.
Additionally, the observations can be sorted by the magnitude of a selected
variable. If interactive
is TRUE
, clicking in a column redraws
the plot with observations sorted by the corresponding variable. Clicking
anywhere outside the plot region quits the interactive session.
TKRmatrixplot
behaves like matrixplot
, but uses
tkrplot
to embed the plot in a Tcl/Tk window.
This is useful if the number of observations and/or variables is large,
because scrollbars allow to move from one part of the plot to another.data(sleep, package = "VIM")
## for missing values
x <- sleep[, -(8:10)]
x[,c(1,2,4,6,7)] <- log10(x[,c(1,2,4,6,7)])
matrixplot(x, sortby = "BrainWgt")
## for imputed values
x_imp <- kNN(sleep[, -(8:10)])
x_imp[,c(1,2,4,6,7)] <- log10(x_imp[,c(1,2,4,6,7)])
matrixplot(x_imp, delimiter = "_imp", sortby = "BrainWgt")
Run the code above in your browser using DataLab