plot.imp(robCompositions)
plot.imp()所属R语言包:robCompositions
Plot method for objects of class imp
类小鬼对象的绘制方法
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function provides several diagnostic plots for the imputed data set in order to see how the imputated values are distributed in comparison with the original data values.
此功能提供了多种诊断图,以如何imputated值分布在比较原始数据值的估算数据。
用法----------Usage----------
## S3 method for class 'imp'
plot(x, ..., which = 1, ord = 1:ncol(x), colcomb = "missnonmiss", plotvars = NULL,
col = c("skyblue", "red"), alpha = NULL, lty = par("lty"), xaxt = "s", xaxlabels = NULL,
las = 3, interactive = TRUE, pch = c(1, 3), smooth = FALSE, reg.line = FALSE,
legend.plot = FALSE, ask = prod(par("mfcol")) < length(which) && dev.interactive(),
center = FALSE, scale = FALSE, id = FALSE, seg.l = 0.02, seg1 = TRUE)
参数----------Arguments----------
参数:x
object of class "imp"
对象类小鬼
参数:...
other parameters to be passed through to plotting functions.
其他参数被传递到绘图功能。
参数:which
if a subset of the plots is required, specify a subset of the numbers 1:3.
如果需要的图的一个子集,指定的号码一时03分的一个子集。
参数:ord
determines the ordering of the variables
确定的顺序的变量
参数:colcomb
if colcomb=“missnonmiss”, observations with missings in any variable are highlighted. Otherwise, observations with missings in any of the variables specified by colcomb are highlighted in the parallel coordinate plot.
如果colcomb=“missnonmiss”,突出的观测任何变量与missings的。否则,观察在任何所指定colcomb变量与missings的平行坐标图中突出显示。
参数:plotvars
Parameter for the parallel coordinate plot. A vector giving the variables to be plotted. If NULL (the default), all variables are plotted.
平行坐标图的参数。一个向量为要绘制的变量。如果为NULL(默认值),所有变量都绘制。
参数:col
a vector of length two giving the colors to be used in the plot. The second color will be used for highlighting.
一个向量的长度为2给予图中要使用的颜色。第二个颜色将用于突出。
参数: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。
参数:lty
a vector of length two giving the line types. The second line type will be used for the highlighted observations. If a single value is supplied, it will be used for both non-highlighted and highlighted observations.
的矢量的长度2发出的线类型。的第二行的类型将被用于高亮显示的观测。如果一个单一的值被提供,它会被用于非高亮显示,并突出显示的观测值。
参数:xaxt
the x-axis type (see par).
的x-轴的类型(见par)。
参数:xaxlabels
a character vector containing the labels for the x-axis. If NULL, the column names of x will be used.
含有一个字符矢量的x轴的标签。如果为NULL,列名的X将被使用。
参数:las
the style of axis labels (see par).
风格的轴标签(见par“)。
参数:interactive
a logical indicating whether the variables to be used for highlighting can be selected interactively (see "Details").
可以交互选择的逻辑表示的变量是否要用于高亮(见“详细信息”)。
参数:pch
a vector of length two giving the symbol of the plotting points. The symbol will be used for the highlighted observations. If a single value is supplied, it will be used for both non-highlighted and highlighted observations.
一个向量的长度为二的象征,绘制点。符号将被用于突出显示的意见。如果一个单一的值被提供,它会被用于非高亮显示,并突出显示的观测值。
参数:smooth
if TRUE a lowess smooth is plotted in each off-diagonal panel of the multiple scatterplot. Further detail can be found in package car.
如果真正的LOWESS平滑绘制在每个非对角线上的多重散点图面板。进一步的细节可以发现,在包的车。
参数:reg.line
if not FALSE a line is plotted using the function given by this argument; e.g., using rlm in package MASS plots a robust-regression line within the multiple scatterplot.
如果使用该参数所给出的函数,例如,使用RLM在包MASS绘制一个强大的回归线内的多个散点图绘制不假行。
参数:legend.plot
if TRUE then a legend for the groups is plotted in the bottom-right cell of the multiple scatterplot.
如果是TRUE,然后绘制一个传奇的组在右下角的单元格中的多个散点图。
参数:ask
logical; if TRUE, the user is asked before each plot, see par(ask=.).
逻辑如果为true,用户被要求在每个小区前,看到par(ASK)。
参数:center
logical, indicates if the data should be centered prior plotting the ternary plot.
逻辑,如果数据中心事先策划的三元图。
参数:scale
logical, indicates if the data should be centered prior plotting the ternary plot.
逻辑,如果数据中心事先策划的三元图。
参数:id
reads the position of the graphics pointer when the (first) mouse button is pressed and returns the corresponding index of the observation. (only used by the ternary plot)
读取的图形指针的位置时(第一次)按下鼠标按钮,并返回相应的索引观察。 (仅用于由三元图)
参数:seg.l
length of the plotting symbol (spikes) for the ternary plot.
三元图的绘制符号(尖峰)的长度。
参数:seg1
if TRUE, the spikes of the plotting symbol are justified.
如果为TRUE,绘图符号的尖峰是有道理的。
Details
详细信息----------Details----------
The first plot (which == 1) is a multiple scatterplot where for the imputed values another plot symbol and color is used in order to highlight them.
第一个图(== 1)的估算值,另一块标志和颜色采用的是为了突出他们是一个多散点图。
Plot 2 is a parallel coordinate plot in which imputed values in certain variables are highlighted. In parallel coordinate plots, the variables are represented by parallel axes. Each observation of the scaled data is shown as a line. If interactive is TRUE, the variables to be used for highlighting can be selected interactively. Observations which includes imputed values in any of the selected variables will be highlighted. A variable can be added to the selection by clicking on a coordinate axis. If a variable is already selected, clicking on its coordinate axis will remove it from the selection. Clicking anywhere outside the plot region quits the interactive session.
2号区是一个平行的坐标图,在某些变量的高亮显示的估算值。在平行坐标图中,变量是由平行轴表示。缩放的数据的每个观察显示为一条线。如果交互式是TRUE时,要用于高亮显示的变量,可以交互选择。观察,其中包括在任何所选变量的估算值将被高亮显示。通过点击的坐标轴,一个变量可以被添加到选择。如果一个变量已经被选中,点击坐标轴,将其删除的选择。积区以外的任何地方点击退出交互式会话。
Plot 3 shows a ternary diagram in which imputed values are highlighted, i.e. those spikes of the chosen plotting symbol are colored in red for which of the values are missing in the unimputed data set.
绘制三元相图3显示了突出估算值,即峰值所选择的绘图符号的值以红色失踪中的unimputed的数据集。
值----------Value----------
None (invisible NULL).
“无”(不可见NULL)。
(作者)----------Author(s)----------
Matthias Templ
参考文献----------References----------
Data Monographs on Statistics and Applied Probability. Chapman \& Hall Ltd., London (UK). 416p.
Journal of the American Statistical Association 85, 664–675.
参见----------See Also----------
impCoda, impKNNa, \
impCoda,impKNNa,\
实例----------Examples----------
data(expenditures)
expenditures[1,3]
expenditures[1,3] <- NA
xi <- impKNNa(expenditures)
xi
summary(xi)
plot(xi, which=1)
plot(xi, which=2)
plot(xi, which=3)
plot(xi, which=3, seg1=FALSE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|