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

R语言 Heatplus包 niceBreaks()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 21:32:03 | 显示全部楼层 |阅读模式
niceBreaks(Heatplus)
niceBreaks()所属R语言包:Heatplus

                                        Get nice (symmetric) breaks for an interval
                                         取得很好的时间间隔(对称)截断

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

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

Given a minimum and a maximum, this function returns a vector of equidistant breaks that covers this interval, and has a pretty interval length (1, 2, or 5 times a power of 10). If the interval contains zero, it will be one of the breaks, so that the intervals are arranged somewhat symmetrically around it.
由于最低和最高,这个函数返回一个覆盖此时间间隔等距截断的向量,并有一个漂亮的间隔长度(1,2,或5倍的10次方)。如果区间包含零,将是一个截断,使间隔有点周围对称排列。


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


niceBreaks(xr, breaks)



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

参数:xr
the range to be covered, as c(min, max)
覆盖范围,为c(min, max)


参数:breaks
either the desired number of breaks, or a pre-specified vector of breaks
要么所需数量的中断,或者预先指定的截断向量


Details

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

The number of desired breaks is honored as far as possible, which is not actually that often in practice. However, major deviations of three or more are reasonably rare.
荣幸尽可能所需的截断数,它实际上不是在实践中,往往。然而,三个或三个以上的重大偏差是相当罕见。

The functiona allows the specification of a set of breaks instead of the desired number of breaks, somewhat like in cut. However, if the length of breaks is greater than one, the function just returns breaks.
泛函允许规范的一组,而不是所需数量的截断截断,有点像cut。然而,如果breaks长度大于一,函数只是返回breaks。


值----------Value----------

A vector of pretty breaks covering the specified interval, more or less of the desired length.
一个漂亮的突破,包括在指定的时间间隔,或所需的长度的向量。


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

pretty
pretty


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


   
    ## Niceness overrules specified number[#我爱你推翻指定的号码]
    niceBreaks(c(-1,1), 5)
    niceBreaks(c(-1,1), 6)

    ## Zero appears always as break[#零似乎总是被打破]
    niceBreaks(c(-2.75, 1.12), 8)

    ## Not invariant to translation (of course)[#没有不变的翻译(当然)]
    niceBreaks(3.27 + c(-2.75, 1.12), 8)

   

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-6 07:03 , Processed in 0.021514 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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