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

R语言:plothistogram()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 20:19:10 | 显示全部楼层 |阅读模式
plothistogram(graphics)
plothistogram()所属R语言包:graphics

                                        Plot Histograms
                                         图直方图

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

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

These are methods for objects of class "histogram", typically produced by hist.
这些都是生产,通常由"histogram"类hist对象的方法。


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


## S3 method for class 'histogram'
plot(x, freq = equidist, density = NULL, angle = 45,
               col = NULL, border = par("fg"), lty = NULL,
               main = paste("Histogram of",
                            paste(x$xname, collapse="\n")),
               sub = NULL, xlab = x$xname, ylab,
               xlim = range(x$breaks), ylim = NULL,
               axes = TRUE, labels = FALSE, add = FALSE,
               ann = TRUE, ...)

## S3 method for class 'histogram'
lines(x, ...)



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

参数:x
a histogram object, or a list with components density, mid, etc, see hist for information about the components of x.
histogram对象,或与组件列表density,mid等,请参阅hist为x组件信息。


参数:freq
logical; if TRUE, the histogram graphic is to present a representation of frequencies, i.e, x$counts; if FALSE, relative frequencies (probabilities), i.e., x$density, are plotted.  The default is true for equidistant breaks and false otherwise.
逻辑;如果TRUE,直方图图形是呈现代表性的频率,即x$counts;如果FALSE,相对频率(概率),即x$density,绘制。默认值是true为等距离breaks“,否则为false。


参数:col
a colour to be used to fill the bars.  The default of NULL yields unfilled bars.
要使用一种颜色,填补了条形。 NULL默认产生悬空的条形。


参数:border
the color of the border around the bars.
颜色的边界附近的条形。


参数:angle, density
select shading of bars by lines: see rect.
选择线棒的阴影:看到rect。


参数:lty
the line type used for the bars, see also lines.
用于条形的线路类型,也看到lines。


参数:main, sub, xlab, ylab
these arguments to title have useful defaults here.
这些title的参数这里有有用的默认。


参数:xlim, ylim
the range of x and y values with sensible defaults.
合理的默认值x和y值的范围。


参数:axes
logical, indicating if axes should be drawn.
逻辑,说明是否应制定轴。


参数:labels
logical or character.  Additionally draw labels on top of bars, if not FALSE; if TRUE, draw the counts or rounded densities; if labels is a character, draw itself.
逻辑或字符。此外,借鉴条形顶部的标签,如果没有FALSE如果TRUE,提请计数或圆形密度; labels如果是character,自行绘制。


参数:add
logical.  If TRUE, only the bars are added to the current plot.  This is what lines.histogram(*) does.
逻辑。如果TRUE,唯一的条形都添加到当前的图。这是什么lines.histogram(*)不。


参数:ann
logical.  Should annotations (titles and axis titles) be plotted?
逻辑。应说明(标题和轴标题)绘制?


参数:...
further graphical parameters to title and axis.
进一步的图形参数title和axis。


Details

详情----------Details----------

lines.histogram(*) is the same as plot.histogram(*, add = TRUE).
lines.histogram(*)是plot.histogram(*, add = TRUE)相同。


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

hist, stem, density.
hist,stem,density。


举例----------Examples----------


(wwt <- hist(women$weight, nclass = 7, plot = FALSE))
plot(wwt, labels = TRUE) # default main &amp; xlab using wwt$xname[默认的主XLab中使用WWT $ XName的]
plot(wwt, border = "dark blue", col = "light blue",
     main = "Histogram of 15 women's weights", xlab = "weight [pounds]")

## Fake "lines" example, using non-default labels:[#假“线”,例如,使用非默认的标签:]
w2 <- wwt; w2$counts <- w2$counts - 1
lines(w2, col = "Midnight Blue", labels = ifelse(w2$counts, "> 1", "1"))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-6 20:11 , Processed in 0.020983 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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