mapMiss(VIM)
mapMiss()所属R语言包:VIM
Map with information about missing/imputed values
图信息丢失/估算值
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Map of observed and missing/imputed values.
图的观察和失踪/估算值。
用法----------Usage----------
mapMiss(x, coords, map, delimiter = NULL, selection = c("any","all"),
col = c("skyblue","red","orange"), alpha = NULL, pch = c(19,15),
col.map = grey(0.5), legend = TRUE, interactive = TRUE, ...)
参数----------Arguments----------
参数:x
a vector, matrix or data.frame.
一个向量,矩阵或data.frame。
参数:coords
a data.frame or matrix with two columns giving the spatial coordinates of the observations.
一个data.frame或两列矩阵的空间坐标的意见。
参数:map
a background map to be passed to bgmap.
要传递给bgmap背景图。
参数: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“)。
参数:selection
the selection method for displaying missing/imputed values in the map. Possible values are "any" (display missing/imputed values in any variable) and "all" (display missing/imputed values in all variables).
在图上显示丢失/估算值的选择方法。可能的值是"any"(显示/估算值中的任何变量)和"all"(显示缺少/估算值中的所有变量)。
参数:col
a vector of length three giving the colors to be used for observed, missing and imputed values. If a single color is supplied, it is used for all 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 to be used for observed and missing/imputed values. If a single plot character is supplied, it will be used for both.
给一个矢量的长度为二的图要使用的字符的观察和失踪/估算值。如果一个单一的图字符被提供时,它会被用于两种。
参数:col.map
the color to be used for the background map.
要使用的颜色为背景图。
参数:legend
a logical indicating whether a legend should be plotted.
逻辑指示是否应绘制一个传奇。
参数:interactive
a logical indicating whether information about selected observations can be displayed interactively (see "Details").
一个逻辑信息是否可以显示有关选定观测的交互方式(见“详细信息”)。
参数:...
further graphical parameters to be passed to bgmap and points.
进一步的图形来传递参数bgmap和points。
Details
详细信息----------Details----------
If interactive=TRUE, detailed information for an observation can be printed on the console by clicking on the corresponding point. Clicking in a region that does not contain any points quits the interactive session.
如果interactive=TRUE,观察的详细信息,可以在控制台上打印,通过点击相应的点。在一个区域不包含任何点单击“退出交互式会话。
(作者)----------Author(s)----------
Matthias Templ, Andreas Alfons, 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----------
bgmap, bubbleMiss, colormapMiss
bgmap,bubbleMiss,colormapMiss
实例----------Examples----------
data(chorizonDL, package = "VIM")
data(kola.background, package = "VIM")
coo <- chorizonDL[, c("XCOO", "YCOO")]
## for missing values[#遗漏值]
x <- chorizonDL[, c("As", "Bi")]
mapMiss(x, coo, kola.background)
## for imputed values[#估算值]
x_imp <- kNN(chorizonDL[, c("As", "Bi")])
mapMiss(x_imp, coo, kola.background, delimiter = "_imp")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|