panels.diag(SciViews)
panels.diag()所属R语言包:SciViews
More univariate panel plots
单变量面板图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Several panel plots that can be used with function pairs.
几个面板的图,可用于与功能pairs。
用法----------Usage----------
panel.boxplot(x, col = par("col"), box.col = "cornsilk", ...)
panel.density(x, adjust = 1, rug = TRUE, col = par("col"), lwd = par("lwd"),
line.col = col, line.lwd = lwd, ...)
panel.hist(x, breaks = "Sturges", hist.col = "cornsilk", hist.border = NULL,
hist.density = NULL, hist.angle = 45, ...)
panel.qqnorm(x, pch = par("pch"), col = par("col"), bg = par("bg"),
cex = par("cex"), lwd = par("lwd"), qq.pch = pch, qq.col = col, qq.bg = bg,
qq.cex = cex, qqline.col = qq.col, qqline.lwd = lwd, ...)
参数----------Arguments----------
参数:x
a numeric vector.
一个数值向量。
参数:col
the color of the points.
点的颜色。
参数:box.col
the filling color of the boxplots.
填充颜色的盒状图。
参数:adjust
the bandwidth adjustment factor, see density.
带宽调整的因素,请参阅density。
参数:rug
do we add a rug representation (1-d plot) of the points too?
我们添加了一个地毯的表示(1-D绘图)之分吗?
参数:lwd
the line width.
的线宽度。
参数:line.col
the color of the line.
线的颜色。
参数:line.lwd
the width of the line.
线的宽度。
参数:breaks
the number of breaks, the name of a break algorithm, a vector of breakpoints, or any other acceptable value for breaks argument of hist
的中断数,中断算法,断点的向量,或任何其他可接受的值breakshist参数的名称
参数:hist.col
the filling color for the histograms.
的填充颜色直方图。
参数:hist.border
the border color for the histograms.
的边框颜色直方图。
参数:hist.density
the density for filling lines in the histograms.
的密度直方图灌装线。
参数:hist.angle
the angle for filling lines in the histograms.
为灌装线中的直方图的角度。
参数:pch
the symbol used for the points.
所用的符号的点。
参数:bg
the background color for symbol used for the points.
用于点的符号的背景颜色。
参数:cex
the expansion factor used for the points.
膨胀系数的点。
参数:qq.pch
the symbol used to plot points in the QQ-plots.
使用的符号绘制QQ图中的点。
参数:qq.col
the color of the symbol used to plot points in the QQ-plots.
使用的符号绘制QQ图中的点的颜色。
参数:qq.bg
the background color of the symbol used to plot points in the QQ-plots.
绘制点在QQ图中使用的符号的背景颜色。
参数:qq.cex
the expansion factor for points in the QQ-plots.
点QQ图的膨胀系数。
参数:qqline.col
the color for the QQ-plot lines.
QQ的图主线的颜色。
参数:qqline.lwd
the width for the QQ-plot lines.
QQ的图主线的宽度。
参数:...
further arguments to plot functions, or functions that construct items, like density(), depending on the context.
进一步的论据绘图功能,或功能,建设项目,如density(),依上下文而定。
Details
详细信息----------Details----------
Panel functions panel.boxplot(), panel.density(), panel.hist() and panel.qqnorm() should be used only to plot univariate data on the diagonals of pair plots (or scatterplot matrix).
面板的功能panel.boxplot(),panel.density(),panel.hist()和panel.qqnorm()应仅用于绘制单变量数据,对图的对角线(或散点图矩阵)。
值----------Value----------
These functions return nothing and are used for their side effect of plotting in panels of composite plots.
这些函数返回任何结果,并图在面板的复合图用于其副作用。
(作者)----------Author(s)----------
Philippe Grosjean <phgrosjean@sciviews.org>, but code inspired from
<code>spm()</code> in package car.
参见----------See Also----------
pairs, boxplot, hist,
pairs,boxplot,hist,
实例----------Examples----------
## Example of scatterplot matrices with custom plots on the diagonal[#示例使用自定义图,散点图矩阵对角线上的]
## Boxplots[#盒形图]
pairs(trees, panel = panel.smooth, diag.panel = panel.boxplot)
pairs(trees, diag.panel = panel.boxplot, box.col = "gray")
## Densities[#密度]
pairs(trees, panel = panel.smooth, diag.panel = panel.density)
pairs(trees, diag.panel = panel.density, line.col = "red", adjust = 0.5)
## Histograms[#直方图]
pairs(trees, panel = panel.smooth, diag.panel = panel.hist)
pairs(trees, diag.panel = panel.hist, hist.col = "gray", breaks = "Scott")
## QQ-plots against Normal theoretical distribution[#QQ对正常的理论分布图]
pairs(trees, panel = panel.smooth, diag.panel = panel.qqnorm)
pairs(trees, diag.panel = panel.qqnorm, qqline.col = 2, qq.cex = .5, qq.pch = 3)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|