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

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

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

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

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

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

Spineplot or spinogram with highlighting of missing/imputed values in  other variables by splitting each cell into two parts.  Additionally,  information about missing/imputed values in the variable of interest is shown  on the right hand side.
Spineplot或spinogram突出的丢失/估算,在其他变量的值的每一个单元分裂成两部分。此外,在感兴趣的变量信息丢失/估算值显示在右手边。


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


spineMiss(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, 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"(突出的丢失/估算值在所有的额外变量)。


参数:breaks
if the variable of interest is numeric, breaks  controls the breakpoints (see hist for  possible values).
如果感兴趣的变量是数字,breaks控制断点(见hist可能的值)。


参数:right
logical; if TRUE and the variable of interest is  numeric, the spinogram cells are right-closed (left-open) intervals.
逻辑,如果TRUE感兴趣的变量是数字,spinogram的的单元是左开右闭()的时间间隔。


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


参数:labels
if the variable of interest is categorical, either a  logical indicating whether labels should be plotted below each cell,  or a character vector giving the labels.  This is ignored if the  variable of interest is numeric.
如果感兴趣的变量是明确的,无论是逻辑说明标签是否应该被绘制下面的每一个单元,或字符向量的标签。这是忽略的,如果感兴趣的变量是数字。


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


参数:miss.labels
either a logical indicating whether label(s) should  be plotted below the cell(s) on the right hand side, or a character  string or vector giving the label(s) (see "Details").
无论是逻辑指示是否标签(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----------

A spineplot is created if the variable of interest is categorial  and a spinogram if it is numerical.  The horizontal axis is scaled  according to relative frequencies of the categories/classes.  If  more than one variable is supplied, the cells are split according to  missingness/number of imputed values in the additional variables.  Thus the proportion of highlighted observations in each category/class is displayed on the vertical axis. Since the height of each cell  corresponds to the proportion of highlighted observations, it is now possible to compare the proportions of missing/imputed values among the  different categories/classes.
创建一个spineplot如果感兴趣的变量是的范畴和spinogram如果它是数字。根据类别/类的相对频率的水平轴被缩放。如果一个以上的变量被提供时,单元分裂根据到missingness /数的估算值中的附加变量。因此,比例,强调在每个类别/类的观测显示在纵轴上。由于每个单元格对应的高度突出显示的观测值中所占的比例,它现在可以用来比较的丢失/插补值之间的不同类别/类的比例。

If only.miss=TRUE, the missing/imputed values in the variable of interest  are also visualized by a cell in the spine plot or spinogram.  If  additional variables are supplied, this cell is again split into two  parts according to missingness/number if imputed values in the additional variables.
如果only.miss=TRUE,在感兴趣的变量的丢失/估算值,也可视化的单元在脊柱图或spinogram的。如果额外的变量被提供,此单元被再次分裂成两部分,根据到missingness /插补值的号码,如果在附加变量。

Otherwise, a small spineplot that visualizes missing/imputed values in the  variable of interest is drawn on the right hand side.  The first cell  corresponds to observed values and the second cell to missing/imputed values.   Each of the two cells is again split into two parts according to  missingness/number of imputed values 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.
否则,可视化的丢失/估算值在感兴趣的变量上绘制一个小spineplot右手边。第一个单元格对应的观测值和第二个单元格为丢失/估算值。的两个单元格中的每一个都被再次分裂成两部分,根据到missingness /数的估算值中的附加变量。请注意,这显示没有意义的,如果只有一个变量被供应,所以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.
如果interactive=TRUE,点击在左旁的图切换到以前的变量,然后点击右边距的结果,在切换到下一个变量的结果。在图形设备上其他任何地方,即可退出交互式会话。


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

a table containing the frequencies corresponding to the cells.
一个表中包含的单元相对应的频率。


注意----------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  xaxlabels and missaxlabels 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的参数名称和位置发生了变化。回兼容性,参数xaxlabels和missaxlabels仍然可以提供给...和正确处理。不过,他们已被弃用,不再记录。使用labels和miss.labels。

The code is based on the function spineplot by  Achim Zeileis.
该代码是基于在功能上spineplot由Achim Zeileis。


(作者)----------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----------

histMiss, barMiss, mosaicMiss
histMiss,barMiss,mosaicMiss


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


data(tao, package = "VIM")
data(sleep, package = "VIM")
## for missing values[#遗漏值]
spineMiss(tao[, c("Air.Temp", "Humidity")])
spineMiss(sleep[, c("Exp", "Sleep")])

## for imputed values[#估算值]
spineMiss(kNN(tao[, c("Air.Temp", "Humidity")]), delimiter = "_imp")
spineMiss(kNN(sleep[, c("Exp", "Sleep")]), delimiter = "_imp")

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-26 07:35 , Processed in 0.027667 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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