marginplot(VIM)
marginplot()所属R语言包:VIM
Scatterplot with additional information in the margins
散点图与利润的其他信息
译者:生物统计家园网 机器人LoveR
描述----------Description----------
In addition to a standard scatterplot, information about missing/imputed values is shown in the plot margins. Furthermore, imputed values are highlighted in the scatterplot.
除了一个标准的散点图,信息丢失/估算值的显示中的图利润。此外,估算价值突出显示在散点图。
用法----------Usage----------
marginplot(x, delimiter = NULL, col = c("skyblue","red","red4","orange",
"orange4"), alpha = NULL, pch = c(1,16), cex = par("cex"),
numbers = TRUE, cex.numbers = par("cex"), zeros = FALSE, xlim = NULL,
ylim = NULL, main = NULL, sub = NULL, xlab = NULL, ylab = NULL,
ann = par("ann"), axes = TRUE, frame.plot = axes, ...)
参数----------Arguments----------
参数:x
a matrix or data.frame with two columns.
matrix或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“)。
参数:col
a vector of length five giving the colors to be used in the plot. The first color is used for the scatterplot and the boxplots for the available data. In case of missing values, the second color is taken for the univariate scatterplots and boxplots for missing values in one variable and the third for the frequency of missing/imputed values in both variables (see "Details"). Otherwise, in case of imputed values, the fourth color is used for the highlighting, the frequency, the univariate scatterplot and the boxplots of mputed values in the first variable and the fifth color for the same applied to the second variable. A black color is used for the highlighting and the frequency of imputed values in both variables instead. If only one color is supplied, it is used for the bivariate and univariate scatterplots and the boxplots for missing/imputed values in one variable, whereas the boxplots for the available data are transparent. Else if two colors are supplied, the second one is recycled.
长度为5的向量给予图中要使用的颜色。第一颜色用于可用数据的散点图和盒形图。在缺失值的情况下,第二个颜色,一个变量的遗漏值的单变量散点图和盒状图和第三的频率丢失/两个变量估算值(见“详细信息”)。否则,在插补值的情况下,第四颜色被用于的高亮显示,频率,单变量的散点图和mputed值的盒形图中的第一个变量和所述第五种颜色相同的施加到第二可变。用于高亮和频率的估算值,这两个变量,而不是黑色。如果只有一种颜色被提供时,它被用于在一个变量中的缺失/插补值的二元和单变量的散点图和盒形图,而可用的数据的盒形图是透明的。否则,如果两个颜色被提供的,第二个循环。
参数: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。
参数:pch
a vector of length two giving the plot symbols to be used for the scatterplot and the univariate scatterplots. If a single plot character is supplied, it is used for the scatterplot and the default value will be used for the univariate scatterplots (see "Details").
给要用于散点图,单变量的散点图的绘图符号的向量的长度2。如果字符是提供一个单一的图,它被用于散点图,默认值将被用于单变量散点图(见“详细信息”)。
参数:cex
the character expansion factor to be used for the bivariate and univariate scatterplots.
字符膨胀系数要用于二元和单变量的散点图。
参数:numbers
a logical indicating whether the frequencies of missing/imputed values should be displayed in the lower left of the plot (see "Details").
一个逻辑指示是否缺少的频率/估算值应显示在左下角的图(见“详细信息”)。
参数:cex.numbers
the character expansion factor to be used for the frequencies of the missing/imputed values.
要使用的字符膨胀系数的频率的丢失/估算值。
参数:zeros
a logical vector of length two indicating whether the variables are semi-continuous, i.e., contain a considerable amount of zeros. If TRUE, only the non-zero observations are used for drawing the respective boxplot. If a single logical is supplied, it is recycled.
逻辑向量的长度为2,表示的变量是否是半连续的,即,包含了相当数量的零。如果TRUE,只有非零观测用于吸引相应的箱线图。如果一个单一的逻辑被提供时,它被回收。
参数:xlim, ylim
axis limits.
轴的限制。
参数:main, sub
main and sub title.
主,子标题。
参数:xlab, ylab
axis labels.
轴标签。
参数:ann
a logical indicating whether plot annotation (main, sub, xlab, ylab) should be displayed.
逻辑图注释(main,sub,xlab,ylab),是否应该显示。
参数:axes
a logical indicating whether both axes should be drawn on the plot. Use graphical parameter "xaxt" or "yaxt" to suppress only one of the axes.
一个逻辑两个坐标轴是否应绘制在图上。使用图形参数"xaxt"或"yaxt"只抑制一个轴。
参数:frame.plot
a logical indicating whether a box should be drawn around the plot.
逻辑指示是否应制定一个盒子,周围的图。
参数:...
further graphical parameters to be passed down (see par).
进一步的图形来传递参数(见par“)。
Details
详细信息----------Details----------
Boxplots for available and missing/imputed data, as well as univariate scatterplots for missing/imputed values in one variable are shown in the plot margins.
盒形图和失踪/估算的数据,以及丢失/估算值在一个变量的单变量散点图中的图利润。
Imputed values in either of the variables are highlighted in the scatterplot.
突出显示在散点图估算值的变量之一。
Furthermore, the frequencies of the missing/imputed values can be displayed by a number (lower left of the plot). The number in the lower left corner is the number of observations that are missing/imputed in both variables.
此外,频率的丢失/估算值可以显示一个号码(左下方的图)。在左下角的数字是缺少/归咎于两个变量的观测数。
注意----------Note----------
Some of the argument names and positions have changed with versions 1.3 and 1.4 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和1.4版本的扩展功能和更高的一致性与其他绘图功能VIM已经改变了一些参数名称和位置。的参数cex.text对于背部的兼容性,仍然可以提供给...,是正确处理。然而,它已被废弃,不再记录。使用cex.numbers“。
(作者)----------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----------
scattMiss
scattMiss
实例----------Examples----------
data(tao, package = "VIM")
data(chorizonDL, package = "VIM")
## for missing values[#遗漏值]
marginplot(tao[,c("Air.Temp", "Humidity")])
marginplot(log10(chorizonDL[,c("CaO", "Bi")]))
## for imputed values[#估算值]
marginplot(kNN(tao[,c("Air.Temp", "Humidity")]), delimiter = "_imp")
marginplot(kNN(log10(chorizonDL[,c("CaO", "Bi")])), delimiter = "_imp")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|