找回密码
 注册
查看: 1136|回复: 0

R语言 sciplot包 bargraph.CI()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-29 22:55:53 | 显示全部楼层 |阅读模式
bargraph.CI(sciplot)
bargraph.CI()所属R语言包:sciplot

                                        Bar Graph of Calculated Means and CI
                                         条形图的计算方式和CI

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Barplot of the mean and standard error (or other summary statistics) of a response variable for one-way or higher experimental designs.
Barplot的响应变量的均值和标准差(或其他摘要统计信息)的单向或更高版本的实验设计。


用法----------Usage----------


bargraph.CI(x.factor, response, group=NULL, split=FALSE,
    col=NULL, angle=NULL, density=NULL,
    lc=TRUE, uc=TRUE, legend=FALSE, ncol=1,
    leg.lab=NULL, x.leg=NULL, y.leg=NULL, cex.leg=1,
    bty="n", bg="white", space=if(split) c(-1,1),
    err.width=if(length(levels(as.factor(x.factor)))>10) 0 else .1,
    err.col="black", err.lty=1,
    fun = function(x) mean(x, na.rm=TRUE),
    ci.fun= function(x) c(fun(x)-se(x), fun(x)+se(x)),
    ylim=NULL, xpd=FALSE, data=NULL, subset=NULL, ...)




参数----------Arguments----------

参数:x.factor
a factor (required) whose levels will form the x axis.
一个因子(所需的)的水平,将形成x轴。


参数:response
a numeric variable giving the response.
一个数值型变量给予响应。


参数:group
grouping factor (optional) whose levels will form groups of bars for each level of x.factor.
分组因子(可选),其水平将形成条形组,每个级别的x.factor。


参数:split
logical.  Should groups of bars be displayed back to back. See details below.
逻辑。条形组显示背靠背。详见下文。


参数:col
default color(s) for bars.
默认的颜色(S)的条形。


参数:angle
default angle of shading lines.
默认情况下角度的阴影线。


参数:density
default density of shading lines.
默认密度的阴影线。


参数:lc, uc
logical.  Should upper or lower CI be drawn?
逻辑。如果上部或下部CI绘制的?


参数:legend
logical.  Should a legend be included?
逻辑。一个传奇?


参数:ncol
number of columns to use for legend.
使用传说的列数。


参数:leg.lab
legend labels for trace factors.
图例标签跟踪的因素。


参数:x.leg, y.leg
optional values to over ride the default legend placement.
可选值超过骑默认的图例位置。


参数:cex.leg
character expansion value for legend labels.
图例标签字符的推广价值。


参数:bty
line type of bounding box for legend.  Defaults to 'none'.
线类型的边界框传说。默认为“无”。


参数:space
set spacing for bars.
设置钢筋间距。


参数:err.width
set width of whiskers for error bars.
设置晶须的错误条的宽度。


参数:err.col
color for error bars. Defaults to "black".
误差线的颜色。默认为“黑色”。


参数:err.lty
line type for error bars.
误差线的线路类型。


参数:bg
background color of legend.
传说中的背景颜色。


参数:fun
the function to compute the summary statistic. Should return a single real value.  Defaults to mean with NA values removed.
函数来计算的汇总统计。应该返回一个单一的实际价值。默认值意味着NA值删除。


参数:ci.fun
the functions to compute the CI.  Should return a vector of length 2 defining the lower and upper limits of the CI's.  Defaults to the mean +/- 1 standard error, with NA values removed.
的函数来计算的CI。应返回的矢量定义的上限和下限的CI的长度为2。默认值的平均值+ /  -  1个标准误差,NA值删除。


参数:ylim
range of y axis.
y轴的范围。


参数:xpd
defualts to xpd=FALSE (in contrast to barplot) to cut off the range of data plotted.
金XPD = FALSE(在对比barplot)defualts切断范围内的数据绘制。


参数:data
an optional data frame.
一个可选的数据框。


参数:subset
an optional expression indicating the subset of the rows of 'data' that should be used in the plot.
一个可选的表达式表示的行的“数据”中的图,应使用的子集。


参数:...
further graphical parameters.  See barplot() for additional options.
进一步的图形参数。额外的选项barplot()。


Details

详细信息----------Details----------

Plots a response as a function of treatment (factor) combinations for one-way and higher designs.  This is a "wrapper" function for barplot that adds confidence intervals - barplot should be consulted for details. Note that the option "beside=TRUE" from barplot is hardcoded and that the default for value xpd is FALSE. If the option split is specified, the response associated with the second grouping factor will be made negative and displayed back-to-back with the first.
图解用于单向和更高的设计处理(因子)的组合作为一个函数的一个响应。这是一个“包装”功能的barplot,增加了置信区间 - barplot·应详细咨询。需要注意的是选项“旁= TRUE”来自barplot的硬编码的默认值XPD是FALSE。如果指定的选项拆分,与所述第二分组因子相关联的响应将被负后端到与所述第一和显示。


参见----------See Also----------

barplot, se
barplot,se


实例----------Examples----------


data(ToothGrowth)

# One way design[其中一个方法设计]
bargraph.CI(x.factor = dose, response = len, data = ToothGrowth)

# Two-way design with options[双向设计的选项]
bargraph.CI(dose, len, group = supp, data = ToothGrowth,
            xlab = "Dose", ylab = "Growth", cex.lab = 1.5, x.leg = 1,
            col = "black", angle = 45, cex.names = 1.25,
            density = c(0,20), legend = TRUE)

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-14 23:57 , Processed in 0.024775 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表