scattmatrixMiss(VIM)
scattmatrixMiss()所属R语言包:VIM
Scatterplot matrix with information about missing/imputed values
与信息丢失/估算值的散点图矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Scatterplot matrix in which observations with missing/imputed values in certain variables are highlighted.
在某些变量的缺失/估算值与观测突出显示散点图矩阵。
用法----------Usage----------
scattmatrixMiss(x, delimiter = NULL, highlight = NULL,
selection = c("any","all"), plotvars = NULL, col = c("skyblue",
"red","orange"), alpha = NULL, pch = c(1,3), lty = par("lty"),
diagonal = c("density","none"), interactive = TRUE, ...)
TKRscattmatrixMiss(x, delimiter = NULL, highlight = NULL,
selection = c("any","all"), plotvars = NULL, col = c("skyblue",
"red","orange"), alpha = NULL, ..., hscale = NULL,
vscale = NULL, TKRpar = list())
参数----------Arguments----------
参数:x
a matrix or data.frame.
矩阵或data.frame。
参数:delimiter
a character-vector to distinguish between variables and imputation-indices for imputed variables (therefore, 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).
一个特征向量来区分变量和插补指数估算的变量(因此,x需要有colnames)。如果给出,它被用来确定相应的插补索引的任何估算的变量(一个逻辑矢量指示变量的值已被插补)。如果这样的归集指数被发现,它们用于高亮和颜色的调整,根据给定的颜色估算变量(见col“)。
参数:highlight
a vector giving the variables to be used for highlighting. If NULL (the default), all variables are used for highlighting.
一个向量给要用于高亮显示的变量。如果NULL(默认值),所有的变量都用于突出显示。
参数:selection
the selection method for highlighting missing/imputed values in multiple highlight variables. Possible values are "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).
突出丢失/估算值多个亮点变量的选择方法。可能的值是"any"(突出显示缺少/在任何的亮点变量的估算值)和"all"(突出的丢失/估算值的所有的亮点变量)。
参数:plotvars
a vector giving the variables to be plotted. If NULL (the default), all variables are plotted.
一个向量发出要绘制的变量。如果NULL(默认值),所有变量都被绘制。
参数: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.
长度为3的矢量给出图中要使用的颜色。第二个/第三个颜色将被用于突出丢失/估算值。
参数:alpha
a numeric value between 0 and 1 giving the level of transparency of the colors, or NULL. This can be used to prevent overplotting.
0和1之间的数值给出的水平的透明度,颜色,或NULL。这可以被用来防止overplotting。
参数:pch
a vector of length two giving the plot characters. The second plot character will be used for the highlighted observations.
给一个矢量的长度为二的图人物。第二幅图的字符将被用于突出显示的意见。
参数:lty
a vector of length two giving the line types for the density plots in the diagonal panels (if diagonal="density"). The second line type is used for the highlighted observations. If a single value is supplied, it is used for both non-highlighted and highlighted observations.
一个向量的长度给在斜板的密度图线类型(如果diagonal="density")。第二行类型是用于高亮显示的观测。如果一个单一的值被提供,它是用于非高亮显示,并突出显示的观测值。
参数:diagonal
a character string specifying the plot to be drawn in the diagonal panels. Possible values are "density" (density plots for non-highlighted and highlighted observations) and "none".
一个字符串指定的图要绘制的在对角线面板。可能的值是"density"(密度图对非突出和强调的观测值)和"none"。
参数:interactive
a logical indicating whether the variables to be used for highlighting can be selected interactively (see "Details").
可以交互选择的逻辑表示的变量是否要用于高亮(见“详细信息”)。
参数:...
for scattmatrixMiss, further arguments and graphical parameters to be passed to pairsVIM. par("oma") will be set appropriately unless supplied (see par). For TKRscattmatrixMiss, further arguments to be passed to scattmatrixMiss.
为scattmatrixMiss,进一步的论据和图形参数被传递到pairsVIM。 par("oma")将设置适当的,除非提供(见par)。对于TKRscattmatrixMiss,进一步的参数被传递给scattmatrixMiss。
参数: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.
被嵌入的Tcl / Tk的窗口(见“详细信息”)的地积比例因子水平。默认值取决于变量的数目。
参数: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.
垂直比例因子的图,被嵌入的Tcl / Tk的窗口(见“详细信息”)。默认值取决于变量的数目。
参数:TKRpar
a list of graphical parameters to be set for the plot to be embedded in a Tcl/Tk window (see "Details" and par).
图形参数设置的列表的图,被嵌入的Tcl / Tk的窗口(见“详细信息和par”)。
Details
详细信息----------Details----------
scattmatrixMiss uses pairsVIM with a panel function that allows highlighting of missing/imputed values.
scattmatrixMiss使用pairsVIM用面板功能,可以让突出的丢失/估算值。
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.
如果interactive=TRUE,要用于高亮显示的变量可以交互选择。观察有下落不明/,突出估算值中的任何或所有选定的变量(selection)。一个变量可以被添加到选择在一个对角线面板通过单击。如果一个变量已经被选中,点击相应的对角线面板,将其从选择。点击其他地方退出交互式会话。
The graphical parameter oma will be set unless supplied as an argument.
图形参数oma设置,除非作为参数提供。
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.
TKRscattmatrixMiss的行为就像scattmatrixMiss,但使用tkrplot的Tcl / Tk的窗口嵌入的图。如果变量的数量非常大,因为滚动条允许的图从一个移动到另一个,这是非常有用的。
注意----------Note----------
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.
1.3版本重新实现更高的一致性与其他绘图功能VIM已经改变了一些参数名称和位置。的参数colcomb对于背部的兼容性,仍然可以提供给...,是正确处理。然而,它已被废弃,不再记录。使用highlight“。的参数smooth,reg.line和legend.plot,不再使用,而忽视如果提供。
(作者)----------Author(s)----------
Andreas Alfons, Matthias Templ, modifications by Bernd Prantner
参考文献----------References----------
Exploring incomplete data using visualization tools. Journal of Advances in Data Analysis and Classification, Online first. DOI: 10.1007/s11634-011-0102-y.
参见----------See Also----------
pairsVIM, marginmatrix
pairsVIM,marginmatrix
实例----------Examples----------
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")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|