找回密码
 注册
查看: 426|回复: 0

R语言 VIM包 barMiss()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 16:05:02 | 显示全部楼层 |阅读模式
barMiss(VIM)
barMiss()所属R语言包:VIM

                                        Barplot with information about missing/imputed values
                                         Barplot信息丢失/估算值

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Barplot with highlighting of missing/imputed values in other variables by splitting  each bar into two parts.  Additionally, information about missing/imputed values in  the variable of interest is shown on the right hand side.
Barplot突出的丢失/估算值,在其他变量,将每个条形分为两部分。此外,在感兴趣的变量信息丢失/估算值显示在右手边。


用法----------Usage----------


barMiss(x, delimiter = NULL, pos = 1, selection = c("any","all"),
    col = c("skyblue","red","skyblue4","red4","orange","orange4"),
    border = NULL, main = NULL, sub = NULL,        xlab = NULL, ylab = NULL,
    axes = TRUE, labels = axes, only.miss = TRUE, miss.labels = axes,
    interactive = TRUE, ...)



参数----------Arguments----------

参数:x
a vector, 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“)。


参数:pos
a numeric value giving the index of the variable of  interest.  Additional variables in x are used for  highlighting.
一个数字值,该值给感兴趣的变量的索引。其他变量在x用于突出。


参数:selection
the selection method for highlighting missing/imputed values  in multiple additional variables.  Possible values are "any"  (highlighting of missing/imputed values in any of the additional  variables) and "all" (highlighting of missing/imputed values in  all of the additional variables).
突出丢失/估算值在多个额外的变量的选择方法。可能的值是"any"(突出显示缺少/任何额外的变量估算值)和"all"(突出的丢失/估算值在所有的额外变量)。


参数:col
a vector of length six giving the colors to be used. If  only one color is supplied, the bars are transparent and the  supplied color is used for highlighting missing/imputed values. Else if two colors are supplied, they are recycled.
给要使用的颜色的矢量长度为6。被提供时,如果只有一种颜色条是透明的,和所提供的颜色用于突出丢失/插补值。否则,如果两个颜色被提供,它们被回收。


参数:border
the color to be used for the border of the bars.  Use border=NA to omit borders.
要使用的颜色的边界的条形。使用border=NA忽略边界。


参数:main, sub
main and sub title.
主,子标题。


参数:xlab, ylab
axis labels.
轴标签。


参数:axes
a logical indicating whether axes should be drawn  on the plot.
逻辑指示是否应绘制在图上轴。


参数:labels
either a logical indicating whether labels should be  plotted below each bar, or a character vector giving the labels.
无论是逻辑标签是否应该被绘制下面的每一个条形,或字符向量的标签。


参数:only.miss
logical; if TRUE, the missing/imputed values in the  variable of interest are visualized by a single bar.  Otherwise, a  small barplot is drawn on the right hand side (see "Details").
逻辑,如果TRUE,在感兴趣的变量的丢失/估算值,是可视化的单杆。否则,小barplot上绘制的右手边(见“详细信息”)。


参数:miss.labels
either a logical indicating whether label(s) should  be plotted below the bar(s) on the right hand side, or a character  string or vector giving the label(s) (see "Details").
无论是逻辑标签(S)是否应绘制(S)的右侧栏下面的,或者是一个字符串或矢量提供的标签(S)(请参阅“详细信息”)。


参数:interactive
a logical indicating whether variables can be  switched interactively (see "Details").
一个逻辑变量可以切换是否交互方式(见“详细信息”)。


参数:...
further graphical parameters to be passed to  title and axis.
进一步的图形来传递参数title和axis。


Details

详细信息----------Details----------

If more than one variable is supplied, the bars for the variable of  interest are split according to missingness/number of imputed missings in the additional  variables.
如果一个以上的变量,条形感兴趣的变量分裂根据到missingness /数字的估算missings的额外的变量。

If only.miss=TRUE, the missing/imputed values in the variable of interest  are visualized by one bar on the right hand side.  If additional variables  are supplied, this bar is again split into two parts according to  missingness/number of imputed missings in the additional variables.
如果only.miss=TRUE,在右手边的一间条形丢失/估算值在感兴趣的变量的可视化。如果额外的变量被提供,这条形再次分成两部分根据到missingness /数的估算中的附加变量missings。

Otherwise, a small barplot consisting of two bars is drawn on the right  hand side.  The first bar corresponds to observed values in the variable  of interest and the second bar to missing/imputed values.  Since these two bars are  not on the same scale as the main barplot, a second y-axis is  plotted on the right (if axes=TRUE).  Each of the two bars are  again split into two parts according to missingness/number of imputed missings in the additional  variables.  Note that this display does not make sense if only one  variable is supplied, therefore only.miss is ignored in that case.
否则,由两个条形一个小barplot绘制的右手侧上。第一栏对应的利益和第二条为丢失/估算值的变量的观测值。由于这两个条形都在同一范围内为主要barplot,第二个y轴绘制的右侧(如果axes=TRUE)。的两个杆中的每一个都被再次分裂成两部分根据到missingness /数的估算中的附加变量missings。请注意,这显示没有意义的,如果只有一个变量被供应,所以only.miss被忽略,在这种情况下。

If interactive=TRUE, clicking in the left margin of the plot  results in switching to the previous variable and clicking in the right  margin results in switching to the next variable.  Clicking anywhere  else on the graphics device quits the interactive session.  When  switching to a continuous variable, a histogram is plotted rather than  a barplot.
如果interactive=TRUE,点击在左旁的图切换到以前的变量,然后点击右边距的结果,在切换到下一个变量的结果。在图形设备上其他任何地方,即可退出交互式会话。当切换到一个连续变量,一个直方图绘制而不是一个barplot。


值----------Value----------

a numeric vector giving the coordinates of the midpoints of the bars.
一个数值向量给予的条形的中点的坐标。


注意----------Note----------

Some of the argument names and positions have changed with version 1.3  due to extended functionality and for more consistency with other plot  functions in VIM.  For back compatibility, the arguments  axisnames, names.arg and names.miss can still be  supplied to ... and are handled correctly.  Nevertheless, they  are deprecated and no longer documented.  Use labels and  miss.labels instead.
由于扩展功能的1.3版本和更高的一致性与其他绘图功能VIM的参数名称和位置发生了变化。回兼容性,参数axisnames,names.arg和names.miss仍然可以提供给...和正确处理。不过,他们已被弃用,不再记录。使用labels和miss.labels。


(作者)----------Author(s)----------


Andreas Alfons, modifications to show imputed values 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----------

spineMiss, histMiss
spineMiss,histMiss


实例----------Examples----------


data(sleep, package = "VIM")
## for missing values[#遗漏值]
x <- sleep[, c("Exp", "Sleep")]
barMiss(x)
barMiss(x, only.miss = FALSE)

## for imputed values[#估算值]
x_IMPUTED  <- kNN(sleep[, c("Exp", "Sleep")])
barMiss(x_IMPUTED, delimiter = "_imp")
barMiss(x_IMPUTED, delimiter = "_imp", only.miss = FALSE)


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-26 10:01 , Processed in 0.031641 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表