overlapHist(simsem)
overlapHist()所属R语言包:simsem
Plot overlapping histograms
绘制重叠直方图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plot overlapping histograms
绘制重叠直方图
用法----------Usage----------
overlapHist(a, b, colors=c("red","blue","purple"), breaks=NULL, xlim=NULL,
ylim=NULL, main=NULL, xlab=NULL, swap=FALSE)
参数----------Arguments----------
参数:a
Data for the first histogram
第一直方图数据
参数:b
Data for the second histogram
第二直方图数据
参数:colors
Colors for the first histogram, the second histogram, and the overlappling areas.
颜色为第一直方图,所述第二直方图,和overlappling领域。
参数:breaks
How many breaks users used in each histogram (should not be used)
如何每个直方图中所用的许多场所的用户(不应该被使用)
参数:xlim
The range of x-axis
的范围内的x轴
参数:ylim
The range of y-axis
y-轴的范围内
参数:main
The title of the figure
图中的标题
参数:xlab
The labels of x-axis
的x-轴的标签
参数:swap
Specify TRUE to plot b first and then a. The default is FALSE to plot a first and then b.
指定TRUE绘制b,然后再a。默认为FALSE绘制a,然后再b。
值----------Value----------
None. This function will plot only.
无。此功能将绘制。
(作者)----------Author(s)----------
Chris Miller provided this code on <a href="http://chrisamiller.com/science/2010/07/20/transparent-overlapping-histograms-in-r/">http://chrisamiller.com/science/2010/07/20/transparent-overlapping-histograms-in-r/</a>. The code is modified by Sunthud Pornprasertmanit (University of Kansas; psunthud@ku.edu)
实例----------Examples----------
# This function is not a public function.[此功能是不是一个公共的功能。]
# a <- rnorm(10000, 0, 1)[< - rnorm(10000,0,1)]
# b <- rnorm(10000, 1, 1.5)[B < - rnorm(10000,1,1.5)]
# overlapHist(a, b, main="Example")[overlapHist(一,二,主=“实施例”)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|