panel.bwplot(lattice)
panel.bwplot()所属R语言包:lattice
Default Panel Function for bwplot
为bwplot默认面板功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This is the default panel function for bwplot.
这是bwplot的默认面板功能。
用法----------Usage----------
panel.bwplot(x, y, box.ratio = 1,
box.width = box.ratio / (1 + box.ratio),
horizontal = TRUE,
pch, col, alpha, cex,
font, fontfamily, fontface,
fill, varwidth = FALSE,
notch = FALSE, notch.frac = 0.5,
...,
levels.fos,
stats = boxplot.stats,
coef = 1.5,
do.out = TRUE,
identifier = "bwplot")
参数----------Arguments----------
参数:x, y
numeric vector or factor. Boxplots drawn for each unique value of y (x) if horizontal is TRUE (FALSE)
数字矢量或因素。盒形图绘制每个y(x)如果horizontal是TRUE(FALSE)的独特价值
参数:box.ratio
ratio of box thickness to inter box space
框厚度比例间的盒子空间
参数:box.width
thickness of box in absolute units; overrides box.ratio. Useful for specifying thickness when the categorical variable is not a factor, as use of box.ratio alone cannot achieve a thickness greater than 1.
在绝对单位盒的厚度;覆盖box.ratio。用于指定分类变量时,是不是一个因素,如使用box.ratio不能单独实现了厚度大于1的厚度。
参数:horizontal
logical. If FALSE, the plot is "transposed" in the sense that the behaviours of x and y are switched. x is now the "factor". Interpretation of other arguments change accordingly. See documentation of bwplot for a fuller explanation.
逻辑。如果为FALSE,该图“换位”切换x和y的行为意识。 x是现在的“因素”。其他参数的解释发生相应的变化。为更全面的解释,请参阅文件bwplot。
参数:pch, col, alpha, cex, font, fontfamily, fontface
graphical parameters controlling the dot. pch="|" is treated specially, by replacing the dot with a line (similar to boxplot)
图形参数控制点。 pch="|"特殊处理,通过更换点与线(类似boxplot的)
参数:fill
color to fill the boxplot
颜色填充盒形图
参数:varwidth
logical. If TRUE, widths of boxplots are proportional to the number of points used in creating it.
逻辑。如果是TRUE,盒形图的宽度是用于创建点的数量成正比。
参数:notch
if notch is TRUE, a notch is drawn in each side of the boxes. If the notches of two plots do not overlap this is "strong evidence" that the two medians differ (Chambers et al., 1983, p. 62). See boxplot.stats for the calculations used.
如果notch是TRUE,在每个箱子的侧面绘制了一个档次。如果不重叠,两图的缺口,这是“强有力的证据”,两个位数不同(Chambers等人,1983年,P 62)。看到boxplot.stats计算使用。
参数:notch.frac
numeric in (0,1). When notch=TRUE, the fraction of the box width that the notches should use.
数值(0,1)。当notch=TRUE,框的宽度,缺口应该使用的一小部分。
参数:stats
a function, defaulting to boxplot.stats, that accepts a numeric vector and returns a list similar to the return value of boxplot.stats. The function must accept arguments coef and do.out even if they do not use them (a ... argument is good enough). This function is used to determine the box and whisker plot.
拖欠boxplot.stats,函数,接受一个数值向量和类似boxplot.stats返回值返回一个列表。该函数必须接受参数coef和do.out即使他们不使用他们的(...论点是不够好)。此功能是用来确定的盒须图。
参数:coef, do.out
passed to stats
传递stats的
参数:levels.fos
numeric values corresponding to positions of the factor or shingle variable. For internal use.
因素或挂牌变量的位置对应的数值。供内部使用。
参数:...
further arguments, ignored.
进一步的论据,忽略不计。
参数:identifier
A character string that is prepended to the names of grobs that are created by this panel function.
一个字符串,前面的名称,由本面板功能创建的grobs。
Details
详情----------Details----------
Creates Box and Whisker plot of x for every level of y (or the other way round if horizontal=FALSE). By default, the actual boxplot statistics are calculated using boxplot.stats. Note that most arguments controlling the display can be supplied to the high-level bwplot call directly.
创建盒须图x每y的水平(或其他方式轮如果horizontal=FALSE)。默认情况下,实际的盒形图统计计算使用boxplot.stats。请注意,大多数控制显示器的参数,可以提供高级别bwplot直接打电话。
Although the graphical parameters for the dot representing the median can be controlled by optional arguments, many others can not. These parameters are obtained from the relevant settings parameters ("box.rectangle" for the box, "box.umbrella" for the whiskers and "plot.symbol" for the outliers).
虽然可以通过可选的参数控制点为代表的中位数的图形参数,许多人不能。这些参数是从相关的设置参数("box.rectangle"框,"box.umbrella"胡须和"plot.symbol"离群)。
作者(S)----------Author(s)----------
Deepayan Sarkar <a href="mailtoeepayan.Sarkar@R-project.org">Deepayan.Sarkar@R-project.org</a>
参见----------See Also----------
bwplot, boxplot.stats
bwplot,boxplot.stats
举例----------Examples----------
bwplot(voice.part ~ height, data = singer,
xlab = "Height (inches)",
panel = function(...) {
panel.grid(v = -1, h = 0)
panel.bwplot(...)
},
par.settings = list(plot.symbol = list(pch = 4)))
bwplot(voice.part ~ height, data = singer,
xlab = "Height (inches)",
notch = TRUE, pch = "|")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|