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

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

[复制链接]
发表于 2012-9-29 22:57:12 | 显示全部楼层 |阅读模式
panels(SciViews)
panels()所属R语言包:SciViews

                                        More panel plots
                                         更多的面板图

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

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

Several panel plots that can be used with functions like coplot and pairs.
几个小组的图可以使用的功能,如coplot和pairs。


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


panel.reg(x, y, col = par("col"), bg = par("bg"), pch = par("pch"),
    cex = par("cex"), lwd = par("lwd"), line.reg = lm, line.col = "red",
    line.lwd = lwd, untf = TRUE, ...)
panel.ellipse(x, y, col = par("col"), bg = par("bg"), pch = par("pch"),
    cex = par("cex"), el.level = 0.7, el.col = "cornsilk", el.border = "red",
    major = TRUE, ...)
panel.cor(x, y, use = "everything", method = c("pearson", "kendall", "spearman"),
    alternative = c("two.sided", "less", "greater"), digits = 2, prefix = "",
    cex = par("cex"), cor.cex = cex, stars.col = "red", ...)



参数----------Arguments----------

参数:x
a numeric vector.
一个数值向量。


参数:y
a numeric vector of same length as x
一个数值向量相同的长度x


参数:col
the color of the points.
点的颜色。


参数:bg
the background color for symbol used for the points.
用于点的符号的背景颜色。


参数:pch
the symbol used for the points.
所用的符号的点。


参数:cex
the expansion factor used for the points.  
膨胀系数的点。


参数:lwd
the line width.
的线宽度。


参数:line.reg
a function that calculates coefficients of a straight line, for instance, lm, or rlm  for robust linear regression.
一个函数,计算直线的系数,例如,lm,或rlm稳健线性回归。


参数:line.col
the color of the line.
线的颜色。


参数:line.lwd
the width of the line.
线的宽度。


参数:untf
logical asking whether to untransform the straight line in case one or both axis are in log scale.
逻辑询问是否untransform直线的情况下,一个或两个轴是在对数刻度。


参数:el.level
the confidence level for the bivariate normal ellipse around data; the default value of 0.7 draws an ellipse of roughly +/-1 sd.
二元正常的椭圆形围绕数据的置信水平为默认值0.7绘制一个椭圆形的大约+ / -1 SD。


参数:el.col
the color used to fill the ellipse.
所用的颜色,填补了椭圆形。


参数:el.border
the color used to draw the border of the ellipse and the standardized major axis.
使用的颜色绘制椭圆,长轴标准化的边界。


参数:major
if TRUE, the standardized major axis is also drawn.
如果TRUE,标准化的长轴也引起。


参数:use
one of "everything", "all.obs", "complete.obs", "na.or.complete", or "pairwise.complete.obs" (can be abbreviated). Defines how the cor() function behaves with missing observations.
一个"everything","all.obs","complete.obs","na.or.complete",或"pairwise.complete.obs"(可略)。定义cor()函数的行为与缺失观察。


参数:method
one of the three correlation coefficients "pearson", (default), "kendall", or "spearman" (can be abbreviated).
的相关系数"pearson"“(默认值),"kendall"或"spearman"(略)。


参数:alternative
the alternative hypothesis in correlation test, see cor.test.
备择假设在相关测试,请参阅cor.test。


参数:digits
the number of decimal digits to print when the correlation coefficient is printed in the graph.
打印时的相关系数是印在图中的小数位数。


参数:prefix
a prefix (character string) to use before the correlation coefficient printed in the graph.
前缀(字符串),使用图中的印刷前的相关系数。


参数:cor.cex
expansion coefficient for text in printing correlation coefficients.
中的文本打印相关系数的膨胀系数。


参数:stars.col
the color used for significance stars (with: *** p < 0.001, ** p < 0.1, * p < 0.05, . p < 0.1.
使用的颜色的意义明星(附:*** P <0.001,** P <0.1,* P <0.05,P <0.1。


参数:...
further arguments to plot functions.
进一步的参数绘图功能。


Details

详细信息----------Details----------

Theses functions should be used outside of the diagonal in pairs(), or with coplot(), as they are bivariate plots.
应使用这些功能的对角线pairs(),或用coplot(),因为他们是二元的图。


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

These functions return nothing and are used for their side effect of plotting in panels of composite plots.
这些函数返回任何结果,并图在面板的复合图用于其副作用。


(作者)----------Author(s)----------



Philippe Grosjean &lt;phgrosjean@sciviews.org&gt;, but code inspired from
<code>panel.smooth()</code> in graphics and <code>panel.car()</code> in package car.




参见----------See Also----------

coplot, pairs, panel.smooth, lm, ellipse, cor and
coplot,pairs,panel.smooth,lm,ellipse,cor


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


## Smooth lines in lower graphs and straight lines in upper graphs[#流畅的线条,在下部的图表和在上图的直线]
pairs(trees, lower.panel = panel.smooth, upper.panel = panel.reg)
## Robust regression lines[#稳健回归]
require(MASS)  # For rlm()[RLM()]
pairs(trees, panel = panel.reg, diag.panel = panel.boxplot,
    reg.line = rlm, line.col = "blue", line.lwd = 2)
## A Double log graph[#A双对数图]
pairs(trees, lower.panel = panel.smooth, upper.panel = panel.reg, log = "xy")

## Graph suitables to explore correlations (take care that there are potentially[#图表适合的探索相关性(要小心,有潜在的]
## many simultaneous tests done here... So, you loose much power is the whole[#同步测试在这里完成...所以,你失去很多权力是整个]
## analysis... use it just as an indication, nothing more!)[#分析...使用它只是作为参考,仅此而已!)]
## Pearson's r[#皮尔逊的R]
pairs(trees, lower.panel = panel.ellipse, upper.panel = panel.cor)
## Spearman's rho (ellipse and straight lines not suitable here!)[#斯皮尔曼的Rho(椭圆和直线不适合在这里!)]
pairs(trees, lower.panel = panel.smooth, upper.panel = panel.cor,
    method = "spearman", span = 1)
## Several groups (visualize how bad it is to consider the whole set at once!)[#若干组(可视化是要考虑整套一次有多么糟糕!)]
pairs(iris[, -5], lower.panel = panel.smooth, upper.panel = panel.cor,
    method = "kendall", span = 1, col = c("red3", "blue3", "green3")[iris$Species])
## Now analyze correlation for one species only[#现在分析一个物种的相关性]
pairs(iris[iris$Species == "virginica", -5], lower.panel = panel.ellipse,
    upper.panel = panel.cor)
   
## A coplot with custom panes[#A coplot使用自定义窗格]
coplot(Petal.Length ~ Sepal.Length | Species, data = iris, panel = panel.ellipse)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-29 22:44 , Processed in 0.021782 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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