scattJitt(VIM)
scattJitt()所属R语言包:VIM
Bivariate jitter plot
二元抖动图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Create a bivariate jitter plot.
创建一个二元抖动图。
用法----------Usage----------
scattJitt(x, delimiter = NULL, col = c("skyblue","red","red4","orange",
"orange4"), alpha = NULL, cex = par("cex"), col.line = "lightgrey",
lty = "dashed", lwd = par("lwd"), numbers = TRUE,
cex.numbers = par("cex"), main = NULL, sub = NULL, xlab = NULL,
ylab = NULL, axes = TRUE, frame.plot = axes,
labels = c("observed","missing","imputed"), ...)
参数----------Arguments----------
参数:x
a data.frame or matrix with two columns.
data.frame或matrix有两列。
参数: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“)。
参数:col
a vector of length five giving the colors to be used in the plot. The first color will be used for complete observations, the second/fourth color for missing/imputed values in only one variable, and the third/fifth color for missing/imputed values in both variables. If only one color is supplied, it is used for all. Else if two colors are supplied, the second one is recycled.
长度为5的向量给予图中要使用的颜色。第一颜色将用于完整的观测,只有一个变量中的第二/第四颜色丢失/插补值,和第三/第五种颜色丢失/插补值在两个变量。如果只有一种颜色被供给,它被用于所有的。否则,如果两个颜色被提供的,第二个循环。
参数: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。
参数:cex
the character expansion factor for the plot characters.
的图人物的性格膨胀系数。
参数:col.line
the color for the lines dividing the plot region.
积除以区域的线条的颜色。
参数:lty
the line type for the lines dividing the plot region (see par).
线将积区的线路类型(见par“)。
参数:lwd
the line width for the lines dividing the plot region.
的线宽线将积区。
参数:numbers
a logical indicating whether the frequencies of observed and missing/imputed values should be displayed (see "Details").
逻辑观察到的和丢失/估算值的频率是否应显示(见“详细信息”)。
参数:cex.numbers
the character expansion factor to be used for the frequencies of the observed and missing/imputed values.
字符膨胀系数可用于观察和丢失/估算值的频率。
参数:main, sub
main and sub title.
主,子标题。
参数:xlab, ylab
axis labels.
轴标签。
参数:axes
a logical indicating whether both axes should be drawn on the plot. Use graphical parameter "xaxt" or "yaxt" to suppress just one of the axes.
一个逻辑两个坐标轴是否应绘制在图上。使用图形化参数"xaxt"或"yaxt"抑制只是其中的一个轴。
参数:frame.plot
a logical indicating whether a box should be drawn around the plot.
逻辑指示是否应制定一个盒子,周围的图。
参数:labels
a vector of length three giving the axis labels for the regions for observed, missing and imputed values (see "Details").
一个长度为3的向量给轴标签的区域观察到的,丢失和估算值(见“详细信息”)。
参数:...
further graphical parameters to be passed down (see par).
进一步的图形来传递参数(见par“)。
Details
详细信息----------Details----------
The amount of observed and missing/imputed values is visualized by jittered points. Thereby the plot region is divided into up to four regions according to the existence of missing/imputed values in one or both variables. In addition, the amount of observed and missing/imputed values can be represented by a number.
观察到的和丢失/估算值的量是可视化的抖动点。由此,积区域分为四个区域,根据存在丢失/插补值中的一个或两个变量。此外,观察到的和丢失/估算值的量可以表示一个数字。
注意----------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 argument cex.text can still be supplied to ... and is handled correctly. Nevertheless, it is deprecated and no longer documented. Use cex.numbers instead.
由于扩展功能的1.3版本和更高的一致性与其他绘图功能VIM的参数名称和位置发生了变化。的参数cex.text对于背部的兼容性,仍然可以提供给...,是正确处理。然而,它已被废弃,不再记录。使用cex.numbers“。
(作者)----------Author(s)----------
Matthias Templ, modifications by Andreas Alfons and 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.
实例----------Examples----------
data(tao, package = "VIM")
## for missing values[#遗漏值]
scattJitt(tao[, c("Air.Temp", "Humidity")])
## for imputed values[#估算值]
scattJitt(kNN(tao[, c("Air.Temp", "Humidity")]), delimiter = "_imp")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|