p.res.2fact(sfsmisc)
p.res.2fact()所属R语言包:sfsmisc
Plot Numeric (e.g. Residuals) vs 2 Factors Using Boxplots
图数字(例如残差),2用盒形图的因素
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plots a numeric (“residual like”) variable against two factor covariates, using boxplots.
绘制一个数字(“残像”),对两个因素的协变量的变量,使用的盒状图。
用法----------Usage----------
p.res.2fact(x, y, z, restricted, notch = FALSE,
xlab = NULL, ylab = NULL, main = NULL)
参数----------Arguments----------
参数:x,y
two factors or numeric vectors giving the levels of factors.
两个因素或给予的水平的因素的数值向量。
参数:z
numeric vector of same length as x and y, typically residuals.
数字向量的长度相同x和y,通常残差。
参数:restricted
positive value which truncates the size. The corresponding symbols are marked by stars.
积极值,截断的大小。以星号对应的符号标记。
参数:notch
logical indicating if the boxplots should be notched, see boxplot(*,notch).
逻辑的盒状图应该是缺口,boxplot(*,notch)。
参数:xlab,ylab
axis labels, see plot.default, per default the actual argument expressions.
轴标签,请参阅plot.default,每默认的实际参数表达式。
参数:main
main title passed to plot, defaulting to the deparsed z argument.
主标题传递给plot,默认为的deparsed z论点。
Details
详细信息----------Details----------
if values are restricted, this make use of the auxiliar function u.boxplot.x.
如果值被限制,这使使用的auxiliar功能u.boxplot.x。
(作者)----------Author(s)----------
Lorenz Gygax <a href="mailto:logyg@wild.unizh.ch">logyg@wild.unizh.ch</a> and Martin Maechler, Jan.95;
starting from <code><a href="p.res.2x.html">p.res.2x</a>()</code>.
参见----------See Also----------
p.res.2x, boxplot, plot.lm, TA.plot.
p.res.2x,boxplot,plot.lm,TA.plot。
实例----------Examples----------
I <- 8; J <- 3; K <- 20
xx <- factor(rep(rep(1:I, rep(K,I)),J))
yy <- factor(rep(1:J, rep(I*K,J)))
zz <- rt(I*J*K, df=5) #-- Student t with 5 d.f.[ - 学生用5吨D.F.]
p.res.2fact(xx,yy,zz, restr= 4, main= "i.i.d. t <- 5 random |.| <= 4")
mtext("p.res.2fact(xx,yy,zz, restr= 4, ..)",
line=2, adj=1, outer=TRUE, cex=1)
## Real data[#实时数据]
data(warpbreaks)
(fm1 <- lm(breaks ~ wool*tension, data = warpbreaks))
with(warpbreaks,
p.res.2fact(wool, tension, residuals(fm1)))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|