panel.barchart(lattice)
panel.barchart()所属R语言包:lattice
Default Panel Function for barchart
净值表的默认面板功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Default panel function for barchart.
默认为barchart面板功能。
用法----------Usage----------
panel.barchart(x, y, box.ratio = 1, box.width,
horizontal = TRUE,
origin = NULL, reference = TRUE,
stack = FALSE,
groups = NULL,
col = if (is.null(groups)) plot.polygon$col
else superpose.polygon$col,
border = if (is.null(groups)) plot.polygon$border
else superpose.polygon$border,
lty = if (is.null(groups)) plot.polygon$lty
else superpose.polygon$lty,
lwd = if (is.null(groups)) plot.polygon$lwd
else superpose.polygon$lwd,
..., identifier = "barchart")
参数----------Arguments----------
参数:x
Extent of Bars. By default, bars start at left of panel, unless origin is specified, in which case they start there.
程度的条形。默认情况下,条形开始在面板的左侧,除非origin指定,在这种情况下,他们开始有。
参数:y
Horizontal location of bars. Possibly a factor.
条形的水平位置。可能是一个因素。
参数:box.ratio
Ratio of bar width to inter-bar space.
条码宽度比间条形空间。
参数:box.width
Thickness of bars 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 flag. 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。
参数:origin
The origin for the bars. For grouped displays with stack = TRUE, this argument is ignored and the origin set to 0. Otherwise, defaults to NULL, in which case bars start at the left (or bottom) end of a panel. This choice is somewhat unfortuntate, as it can be misleading, but is the default for historical reasons. For tabular (or similar) data, origin = 0 is usually more appropriate; if not, one should reconsider the use of a bar chart in the first place (dot plots are often a good alternative).
条形的起源。 对于stack = TRUE分组显示,这一论点被忽略原点设置为0。否则,默认NULL,在这种情况下条形开始在面板的左(或底部)。这样的选择是有点unfortuntate的,因为它可能会产生误导,但由于历史的原因是默认的。表格(或类似)的数据,origin = 0通常是比较合适;如果没有,应该考虑使用一个摆在首位(点图往往是一个很好的选择)条形图。
参数:reference
Logical, whether a reference line is to be drawn at the origin.
逻辑,是否是在原点绘制参考线。
参数:stack
logical, relevant when groups is non-null. If FALSE (the default), bars for different values of the grouping variable are drawn side by side, otherwise they are stacked.
逻辑时,有关组非空。如果FALSE(默认),为不同的分组变量值的条形绘制并排,否则它们堆放。
参数:groups
Optional grouping variable.
可选分组可变。
参数:col, border, lty, lwd
Graphical parameters for the bars. By default, the trellis parameter plot.polygon is used if there is no grouping variable, otherwise superpose.polygon is used. col gives the fill color, border the border color, and lty and lwd the line type and width of the borders.
条形的图形参数。默认情况下,网格参数plot.polygon如果没有分组变量,否则superpose.polygon使用。 col给人的填充颜色,border边框的颜色,lty和lwd边界线类型和宽度。
参数:...
Extra arguments will be accepted but ignored.
将接受额外的参数,但忽略。
参数:identifier
A character string that is prepended to the names of grobs that are created by this panel function.
一个字符串,前面的名称,由本面板功能创建的grobs。
Details
详情----------Details----------
A barchart is drawn in the panel. Note that most arguments controlling the display can be supplied to the high-level barchart call directly.
在面板上绘制一个净值表。请注意,大多数控制显示器的参数,可以提供高级别barchart直接打电话。
作者(S)----------Author(s)----------
Deepayan Sarkar <a href="mailtoeepayan.Sarkar@R-project.org">Deepayan.Sarkar@R-project.org</a>
参见----------See Also----------
barchart
barchart
举例----------Examples----------
barchart(yield ~ variety | site, data = barley,
groups = year, layout = c(1,6), origin = 0,
ylab = "Barley Yield (bushels/acre)",
scales = list(x = list(abbreviate = TRUE,
minlength = 5)))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|