加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

R语言-rug函数说明

(2014-08-01 18:43:40)
分类: 【R语言】
rug(graphics)
rug()所属R语言包:graphics

                                        Add a Rug to a Plot
                                         添加地毯图

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

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

Adds a rug representation (1-d plot) of the data to the plot.
添加地毯图的数据表示(1-D图)。


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


rug(x, ticksize = 0.03, side = 1, lwd = 0.5, col = par("fg"),
    quiet = getOption("warn") < 0, ...)



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

参数:x
A numeric vector 
一个数值向量


参数:ticksize
The length of the ticks making up the "rug". Positive lengths give inwards ticks. 
刻度线的长度,“地毯”。积极长度给向内刻度线。


参数:side
On which side of the plot box the rug will be plotted. Normally 1 (bottom) or 3 (top). 
图中的哪一侧的地毯将绘制。通常为1(底部)或3(顶部)。


参数:lwd
The line width of the ticks.  Some devices will round the default width up to 1. 
刻度线的线宽。有些设备将周围的默认宽度1。


参数:col
The colour the ticks are plotted in. 
刻度线的颜色绘制的


参数:quiet
logical indicating if there should be a warning about clipped values. 
逻辑表示,如果有应该是一个有关截断值的警告。


参数:...
further arguments, passed to axis, such as line or pos for specifying the location of the rug. 
进一步的参数,传递给axis,如line或pos指定位置的地毯。


Details

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

Because of the way rug is implemented, only values of x that fall within the plot region are included.  There will be a warning if any finite values are omitted, but non-finite values are omitted silently.
由于rug实施,x,图区域内下降的唯一值。会有一个警告,如果任何有限值被忽略,但非限定值被省略默默。

Prior to R 2.8.0 rug re-drew the axis like: it no longer does so.
之前ŕ2.8.0rug重新提请轴这样的:它不再这样做。


参考文献----------References----------

Statistical Models in S. Wadsworth & Brooks/Cole.

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

jitter which you may want for ties in x.
jitter你可能想在x关系。


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


require(stats)# both 'density' and its default method[“密度”和它的默认方法]
with(faithful, {
    plot(density(eruptions, bw = 0.15))
    rug(eruptions)
    rug(jitter(eruptions, amount = 0.01), side = 3, col = "light blue")
})

转载: 生物统计家园网(http://www.biostatistic.net)。



0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有