panel.qqmath(lattice)
panel.qqmath()所属R语言包:lattice
Default Panel Function for qqmath
为qqmath默认面板功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This is the default panel function for qqmath.
这是qqmath的默认面板功能。
用法----------Usage----------
panel.qqmath(x, f.value = NULL,
distribution = qnorm,
qtype = 7,
groups = NULL, ...,
tails.n = 0,
identifier = "qqmath")
参数----------Arguments----------
参数:x
vector (typically numeric, coerced if not) of data values to be used in the panel.
向量(通常是数字,如果不是强制)的数据可以在面板中使用的值。
参数:f.value, distribution
Defines how quantiles are calculated. See qqmath for details.
定义位数是如何计算的。看到qqmath详情。
参数:qtype
The type argument to be used in quantile
type参数,可以使用quantile
参数:groups
An optional grouping variable. Within each panel, one Q-Q plot is produced for every level of this grouping variable, differentiated by different graphical parameters.
一个可选的分组变量。在每个小组中,一个QQ图制作区分不同的图形参数,每本分组变量的水平。
参数:...
Further arguments, often graphical parameters, eventually passed on to panel.xyplot. Arguments grid and abline of panel.xyplot may be particularly useful.
进一步的论据,通常图形的参数,最终转嫁到panel.xyplot。参数grid和ablinepanel.xyplot可能会特别有用。
参数:tails.n
number of data points to represent exactly on each tail of the distribution. This reproduces the effect of f.value = NULL for the extreme data values, while approximating the remaining data. It has no effect if f.value = NULL. If tails.n is given, qtype is forced to be 1.
数据点的数量,分布对每个尾部完全代表。这再现的效果f.value = NULL极端的数据值同时逼近剩余的数据。它有没有效果,如果f.value = NULL。如果tails.n给出,qtype被迫为1。
参数:identifier
A character string that is prepended to the names of grobs that are created by this panel function.
一个字符串,前面的名称,由本面板功能创建的grobs。
Details
详情----------Details----------
Creates a Q-Q plot of the data and the theoretical distribution given by distribution. Note that most of the arguments controlling the display can be supplied directly to the high-level qqmath call.
创建QQ图的数据和理论分布distribution。请注意,大部分控制显示的参数,可以直接提供给高级别qqmath呼叫。
作者(S)----------Author(s)----------
Deepayan Sarkar <a href="mailtoeepayan.Sarkar@R-project.org">Deepayan.Sarkar@R-project.org</a>
参见----------See Also----------
qqmath
qqmath
举例----------Examples----------
set.seed(0)
xx <- rt(10000, df = 10)
qqmath(~ xx, pch = "+", distribution = qnorm,
grid = TRUE, abline = c(0, 1),
xlab.top = c("raw", "ppoints(100)", "tails.n = 50"),
panel = function(..., f.value) {
switch(panel.number(),
panel.qqmath(..., f.value = NULL),
panel.qqmath(..., f.value = ppoints(100)),
panel.qqmath(..., f.value = ppoints(100), tails.n = 50))
}, layout = c(3, 1))[c(1,1,1)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|