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

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

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

                                        Histogram with information about missing/imputed values
                                         信息丢失/估算值的直方图

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

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

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


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


histMiss(x, delimiter = NULL, pos = 1, selection = c("any","all"),
    breaks = "Sturges", right = TRUE, col = c("skyblue","red",
    "skyblue4","red4","orange","orange4"), border = NULL,
    main = NULL, sub = NULL, xlab = NULL, ylab = NULL, axes = TRUE,
    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"(突出的丢失/估算值在所有的额外变量)。


参数:breaks
either a character string naming an algorithm to compute  the breakpoints (see hist), or a numeric value giving  the number of cells.
无论是字符串命名一种算法来计算断点(请参见hist),或一个数字值,该值提供的单元数。


参数:right
logical; if TRUE, the histogram cells are  right-closed (left-open) intervals.
逻辑,如果TRUE,直方图单元右闭(左开)的时间间隔。


参数: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 cells.  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.
逻辑指示是否应绘制在图上轴。


参数:only.miss
logical; if TRUE, the missing/imputed values in the first  variable 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 the 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 bins for the variable of  interest will be 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 categorical variable, a barplot is produced rather than  a histogram.
如果interactive=TRUE,点击在左旁的图切换到以前的变量,然后点击右边距的结果,在切换到下一个变量的结果。在图形设备上其他任何地方,即可退出交互式会话。当切换到一个分类变量,barplot,而不是一个直方图。


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

a list with the following components:
与以下组件的列表:


参数:breaks
the breakpoints.
断点。


参数:counts
the number of observations in each cell.
在每个单元格的若干意见。


参数:missings
the number of highlighted observations in each cell.
在每个单元格中的高亮显示的观测数。


参数:mids
the cell midpoints.
单元的中点。


注意----------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 and names.miss can still be supplied to  ... and are handled correctly.  Nevertheless, they are  deprecated and no longer documented.  Use miss.labels instead.
由于扩展功能的1.3版本和更高的一致性与其他绘图功能VIM的参数名称和位置发生了变化。回兼容性,参数axisnames和names.miss仍然可以提供给...和正确处理。不过,他们已被弃用,不再记录。使用miss.labels“。


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


Andreas Alfons, 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, barMiss
spineMiss,barMiss


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


data(tao, package = "VIM")
## for missing values[#遗漏值]
x <- tao[, c("Air.Temp", "Humidity")]
histMiss(x)
histMiss(x, only.miss = FALSE)

## for imputed values[#估算值]
x_IMPUTED <- kNN(tao[, c("Air.Temp", "Humidity")])
histMiss(x_IMPUTED, delimiter = "_imp")
histMiss(x_IMPUTED, delimiter = "_imp", only.miss = FALSE)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-26 08:59 , Processed in 0.026336 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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