plot.design(graphics)
plot.design()所属R语言包:graphics
Plot Univariate Effects of a Design or Model
图设计或模型的单因素的影响
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plot univariate effects of one or more factors, typically for a designed experiment as analyzed by aov(). Further, in S this a method of the plot generic function for design objects.
绘制一个或多个factor的单因素影响,通常为设计的实验,分析aov()。此外,这是plotdesign对象的通用功能的方法。
用法----------Usage----------
plot.design(x, y = NULL, fun = mean, data = NULL, ...,
ylim = NULL, xlab = "Factors", ylab = NULL,
main = NULL, ask = NULL, xaxt = par("xaxt"),
axes = TRUE, xtick = FALSE)
参数----------Arguments----------
参数:x
either a data frame containing the design factors and optionally the response, or a formula or terms object.
无论是数据框包含的设计因素,并选择性响应,或formula或terms对象。
参数:y
the response, if not given in x.
的反应,如果不是在x。
参数:fun
a function (or name of one) to be applied to each subset. It must return one number for a numeric (vector) input.
一个函数(或一个名字)被应用到每个子集。它必须返回一个数字(矢量)输入一个数字。
参数:data
data frame containing the variables referenced by x when that is formula like.
数据框含有x引用变量时,公式是想的。
参数:...
graphical parameters such as col, see par.
col,看到par如图形的参数。
参数:ylim
range of y values, as in plot.default.
y值的范围,在plot.default。
参数:xlab
x axis label, see title.
X轴的标签,看到title。
参数:ylab
y axis label with a "smart" default.
y的轴标签“聪明”的默认。
参数:main
main title, see title.
主标题,看到title。
参数:ask
logical indicating if the user should be asked before a new page is started – in the case of multiple y's.
逻辑表示如果用户应要求前开始了新的一页 - 在多个y的情况。
参数:xaxt
character giving the type of x axis.
给X轴的类型的字符。
参数:axes
logical indicating if axes should be drawn.
逻辑说明是否应制定轴。
参数:xtick
logical indicating if ticks (one per factor) should be drawn on the x axis.
逻辑表明,如果刻度线(每一个因素)应绘制在X轴上。
Details
详情----------Details----------
The supplied function will be called once for each level of each factor in the design and the plot will show these summary values. The levels of a particular factor are shown along a vertical line, and the overall value of fun() for the response is drawn as a horizontal line.
所提供的函数将被调用一次,每个水平的各因素,在设计和剧情将显示这些汇总值。沿着一条垂直线,并显示一个特定的因素水平的整体价值fun()作为一个水平线绘制响应。
This is a new R implementation which will not be completely compatible to the earlier S implementations. This is not a bug but might still change.
这是一个新的R实现,这不会是完全兼容早期的S实现。这是不是一个错误,但仍有可能更改。
注意----------Note----------
A big effort was taken to make this closely compatible to the S version. However, col (and fg) specification has different effects.
采取了很大的努力,使这个紧密兼容的S版本。然而,col(fg)规格有不同的效果。
作者(S)----------Author(s)----------
Roberto Frisullo and Martin Maechler
参考文献----------References----------
Statistical Models in S. Chapman & Hall, London, the white book, pp. 546–7 (and 163–4).
Displays for data from large designed experiments; Computer Science and Statistics: Proc.\ 22nd Symp\. Interface, 117–126, Springer Verlag.
参见----------See Also----------
interaction.plot for a "standard graphic"
interaction.plot标准的图形“
举例----------Examples----------
require(stats)
plot.design(warpbreaks)# automatic for data frame with one numeric var.[自动数据框与一个数字VAR。]
Form <- breaks ~ wool + tension
summary(fm1 <- aov(Form, data = warpbreaks))
plot.design( Form, data = warpbreaks, col = 2)# same as above[与上述相同]
## More than one y :[#超过一个Y:]
utils::str(esoph)
plot.design(esoph) ## two plots; if interactive you are "ask"ed[#两个图,如果互动的话,你是“问”版]
## or rather, compare mean and median:[#或者更确切地说,比较平均数和中位数:]
op <- par(mfcol = 1:2)
plot.design(ncases/ncontrols ~ ., data = esoph, ylim = c(0, 0.8))
plot.design(ncases/ncontrols ~ ., data = esoph, ylim = c(0, 0.8),
fun = median)
par(op)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|