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

R语言 sfsmisc包 hist.bxp()函数中文帮助文档(中英文对照)

  [复制链接]
发表于 2012-9-30 01:37:34 | 显示全部楼层 |阅读模式
hist.bxp(sfsmisc)
hist.bxp()所属R语言包:sfsmisc

                                        Plot a Histogram and a Boxplot
                                         绘制直方图和箱线图

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

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

Creates a histogram and a horizontal boxplot on the current graphics device.
创建的直方图和在当前图形上的移动设备的水平的箱线图。


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


hist.bxp(x, nclass, breaks, probability=FALSE, include.lowest=TRUE,
         xlab = deparse(substitute(x)),
         ...,
         width=0.2, boxcol=3, medcol=2, medlwd=5, whisklty=2, staplelty=1)



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

参数:x
numeric vector of data for histogram. Missing values (NAs) are allowed.
进行直方图的数据数值向量。遗漏值(NAS)是允许的。


参数:nclass
recommendation for the number of classes (i.e., bars) the histogram should have. The default is a number proportional to the logarithm of the length of x.  
建议的类的数量(即,条形)的直方图应该有。默认值是一个数字的长度x的对数成比例。


参数:breaks
vector of the break points for the bars of the histogram. The count in the i-th bar is sum(breaks[i] < x <= breaks[i+1]) except that if include.lowest is TRUE (the default), the first bar also includes points equal to breaks[1].  If omitted, evenly-spaced break points are determined from nclass and the extremes of the data.  
向量的破发点,条形的直方图。第i个条形中的计数值,如果是sum(breaks[i] < x <= breaks[i+1])除了include.lowest是TRUE(默认值),第一条也包括点,等于breaks[1]。如果省略,则均匀分布的破发点确定nclass和极端的数据。


参数:probability
logical flag: if TRUE, the histogram will be scaled as a probability density; the sum of the bar heights times bar widths will equal 1. If FALSE, the heights of the bars will be counts.  
逻辑标志:如果TRUE,将被缩小的直方图作为概率密度条形的高度倍条形宽度的总和将等于1。如果FALSE,条形的高度将计数。


参数:include.lowest
If TRUE (the default), the lowest bar will include data points equal to the lowest break, otherwise it will act like the other bars (see the description of the breaks argument).  
如果TRUE(默认值),最低的条形将包括数据点的最低截断,否则它会像其他条形(见的breaks参数的描述)。


参数:xlab
character or expression for x axis labeling.
字符或表达式x轴的标签。


参数:...
additional arguments to barplot.  The hist function uses the function barplot to do the actual plotting; consequently, arguments to the barplot function that control shading, etc., can also be given to hist. See the barplot documentation for arguments angle, density, col, and  inside. Do not use the space or histo arguments.  
附加参数到barplot。 hist功能使用的功能barplot做实际的绘制,因此,barplot函数的参数,控制阴影等,也可以给hist。 barplot文档参数angle,density,col和inside。不要使用space或histo参数。


参数:width
width of the box relative to the height of the histogram. DEFAULT is 0.2.
的高度的直方图相对的框的宽度。默认是0.2。


参数:boxcol
color of filled box. The default is 3.
填充框的颜色。默认的3。


参数:medcol
the color of the median line. The special value, NA, indicates the current plotting color (par("col")). The default is 2. If boxcol=0 and medcol is not explicitly specified this is set to the current plotting color (par("col")).  
中间线的颜色。特殊的价值,NA,表示当前的绘图颜色(par("col"))。默认的2。如果boxcol=0和medcol没有明确规定的,这是当前的绘图颜色(par("col"))。


参数:medlwd
median line width.  The special value NA, is used to indicate the current line width (par("lwd")).  The default is 5.  
中位线的宽度。特殊值NA,使用来表示当前的线宽度(par("lwd"))。默认的5。


参数:whisklty
whisker line type. The special value NA indicates the current line type (par("lty")). The default is 2 (dotted line).
类型晶须线。特殊的价值NA表示当前行的类型(par("lty"))的。默认值是2(虚线)。


参数:staplelty
staple (whisker end cap) line type. The special value NA indicates the current line type (par("lty")). The default is 1 (solid line).  Graphical parameters (see par) may also be supplied as arguments to this function. In addition, the high-level graphics arguments described under par and the arguments to title may be supplied to this function.
纤维(晶须端盖)线类型。特殊的价值NA表示当前行的类型(par("lty"))的。默认值是1(实线)。图形参数(见par)也可以提供这个函数的参数。此外,高层次的的图形参数描述下par的参数title可能会提供给该函数。


Details

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

If include.lowest is FALSE the bottom breakpoint must be strictly less than the minimum of the data, otherwise (the default) it must be less than or equal to the minimum of the data. The top breakpoint must be greater than or equal to the maximum of the data.
如果include.lowest是FALSE底部断点必须严格小于最小的数据,否则(默认值)必须小于或等于最小的数据。最上方的断点必须是大于或等于的数据的最大值。


(作者)----------Author(s)----------


S-Plus: Markus Keller, Christian Keller; port to <font face="Courier New,Courier" color="#666666"><b>R</b></font>: Martin M盲chler.




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

hist, barplot, boxplot, rug and scat1d in the Hmisc package.
hist,barplot,boxplot,rug和scat1d中Hmisc包。


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


lab <- "50 samples from a t distribution with 5 d.f."
mult.fig(2*3, main = "Hist() + Rug()   and    Hist.bxp(*)")
for(i in 1:3) {
   my.sample <-  rt(50, 5)
   hist(my.sample, main=lab); rug(my.sample)# for 50 obs., this is ok, too..[50的OB。,这是确定的,太..]
   hist.bxp(my.sample, main=lab)
}

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-4-18 10:43 , Processed in 0.021857 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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