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

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

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

                                        Banking
                                         银行业

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

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

Calculates banking slope
计算银行斜坡


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


banking(dx, dy)



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

参数:dx, dy
vector of consecutive x, y differences.  
连续的X,Y差异向量。


Details

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

banking is the banking function used when aspect = "xy" in high level Trellis functions. It is usually not very meaningful except with xyplot.  It considers the absolute slopes (based on dx and dy) and returns a value which when adjusted by the panel scale limits will make the median of the above absolute slopes correspond to a 45 degree line.
banking是使用银行功能时aspect = "xy"在高层次网格功能。它通常是非常有意义的,除了用xyplot。它认为绝对斜坡(基于dx和dy),并返回一个值时调整面板的规模限制,将使中位数以上的绝对斜坡对应于45度线。

This function was inspired by the discussion of banking in the documentation for Trellis Graphics available at Bell Labs' website (see Lattice), but is most likely identical to an algorithm described by Cleveland et al (see below).  It is not clear (to the author) whether this is the algorithm used in S-PLUS.  Alternative banking rules, implemented as a similar function, can be used as a drop-in replacement by suitably modifying lattice.options("banking").
此功能的灵感来自于银行的讨论,在贝尔实验室的网站提供的格子图形文件(见Lattice),但最有可能克利夫兰等(见下文)所描述的算法相同。目前尚不清楚(笔者),这是否是在S-PLUS中使用的算法。替代银行的规则,实现类似的功能,可以用来作为一个下拉在更换适当的修改lattice.options("banking")。


作者(S)----------Author(s)----------


Deepayan Sarkar <a href="mailtoeepayan.Sarkar@R-project.org">Deepayan.Sarkar@R-project.org</a>



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

&ldquo;The Shape Parameter of a Two-variable Graph&rdquo;, Journal of the American Statistical Association, 83, 289&ndash;300.

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

Lattice, xyplot
Lattice,xyplot


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



## with and without banking[#与无银行]

plot <- xyplot(sunspot.year ~ 1700:1988, xlab = "", type = "l",
               scales = list(x = list(alternating = 2)),
               main = "Yearly Sunspots")
print(plot, position = c(0, .3, 1, .9), more = TRUE)
print(update(plot, aspect = "xy", main = "", xlab = "Year"),
      position = c(0, 0, 1, .3))

## cut-and-stack plot (see also xyplot.ts)[#削减和堆叠图(见也xyplot.ts)]

xyplot(sunspot.year ~ time(sunspot.year) | equal.count(time(sunspot.year)),
       xlab = "", type = "l", aspect = "xy", strip = FALSE,
       scales = list(x = list(alternating = 2, relation = "sliced")),
       as.table = TRUE, main = "Yearly Sunspots")


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-24 08:55 , Processed in 0.022761 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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