superbarplot(UsingR)
superbarplot()所属R语言包:UsingR
super segmented barplot
超分割barplot的
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plot a barplot, with bars nested and ranging from a max to a minimum value. A similar graphic is used on the weather page of the New York Times.
绘制一个barplot与嵌套和范围从最大到最小的值的条形。纽约时报“天气页面上使用类似的图形。
用法----------Usage----------
superbarplot(x, names = 1:dim(x)[2], names_height = NULL,
col = gray(seq(0.8, 0.5, length = dim(x)[1]/2)), ...
)
参数----------Arguments----------
参数:x
A matrix with each pair of rows representing a min and max for the bar.
一个矩阵,每一对行代表一个最小和最大的条形。
参数:names
Place a name in each bar.
将在每个条形的名称。
参数:names_height
Where the names should go
的名称应该去的地方
参数:col
What colors to use for the bars. There should be half as many specified as rows of x
使用什么颜色的条形。应该有一半多的x行指定为
参数:...
passed to plot.window.
传递到plot.window。
Details
详细信息----------Details----------
A similar graphic on the weather page of the New York Times shows bars for record highs and lows, normal highs and lows and actual (or predicted) highs or lows for 10 days of weather. This graphic succintly and elegantly displays a wealth of information. Intended as an illustration of the polygon function.
类似的图形纽约时报“天气页面上显示为创纪录的高点和低点,正常的高点和低点和实际(或预测)10天的天气的高点或低点的条形。此图形简洁地和典雅,显示了丰富的信息。旨在作为polygon功能的说明,使用。
值----------Value----------
Returns a plot, but no other values.
返回的图,但没有其他的值。
(作者)----------Author(s)----------
John Verzani
参考文献----------References----------
<h3>See Also</h3>
实例----------Examples----------
record.high=c(95,95,93,96,98,96,97,96,95,97)
record.low= c(49,47,48,51,49,48,52,51,49,52)
normal.high=c(78,78,78,79,79,79,79,80,80,80)
normal.low= c(62,62,62,63,63,63,64,64,64,64)
actual.high=c(80,78,80,68,83,83,73,75,77,81)
actual.low =c(62,65,66,58,69,63,59,58,59,60)
x=rbind(record.low,record.high,normal.low,normal.high,actual.low,actual.high)
the.names=c("S","M","T","W","T","F","S")[c(3:7,1:5)]
superbarplot(x,names=the.names)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|