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

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

[复制链接]
发表于 2012-2-16 17:26:42 | 显示全部楼层 |阅读模式
drawDetails(grid)
drawDetails()所属R语言包:grid

                                         Customising grid Drawing
                                         定制网格图

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

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

These generic hook functions are called whenever a grid grob is drawn. They provide an opportunity for customising the drawing of a new class derived from grob (or gTree).
这些通用的钩子函数被称为每当电网GROB绘制。他们定制从GROB(或gTree)派生一个新类的绘图提供了一个机会。


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


drawDetails(x, recording)
draw.details(x, recording)
preDrawDetails(x)
postDrawDetails(x)



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

参数:x
A grid grob.  
网格GROB。


参数:recording
A logical value indicating whether a grob is being added to the display list or redrawn from the display list.  
一个逻辑值,该值指示GROB是否被添加到显示列表或从显示列表重绘。


Details

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

These functions are called by the grid.draw methods for grobs and gTrees.
这些功能被称为grid.drawgrobs和gTrees的方法。

preDrawDetails is called first during the drawing of a grob. This is where any additional viewports should be pushed (see, for example, grid:::preDrawDetails.frame).  Note that the default behaviour for grobs is to push any viewports in the vp slot, and for gTrees is to also push and up any viewports in the childrenvp slot so there is typically nothing to do here.
preDrawDetailsGROB的绘图过程中被称为第一。这是任何额外的视口应推(见,例如,grid:::preDrawDetails.frame)。请注意,为grobs的默认行为是推vp插槽任何视口中,和gTrees,也推起来childrenvp插槽任何视口,所以通常是在这里做什么。

drawDetails is called next and is where any additional calculations and graphical output should occur (see, for example, grid:::drawDetails.xaxis.  Note that the default behaviour for gTrees is to draw all grobs in the children slot so there is typically nothing to do here.
drawDetails被称为是应该发生的任何额外的计算和图形输出(见,例如,grid:::drawDetails.xaxis。请注意,默认行为是为gTreeschildren提请所有grobs槽,所以通常是在这里做什么。

postDrawDetails is called last and should reverse anything done in preDrawDetails (i.e., pop or up any viewports that were pushed;  again, see, for example, grid:::postDrawDetails.frame).  Note that the default behaviour for grobs is to pop any viewports that were pushed so there is typically nothing to do here.
postDrawDetails被称为最后应该扭转做任何preDrawDetails(即POP或任何推视口;再次,例如,grid:::postDrawDetails.frame)。需要注意的是的默认grobs行为是弹出任何被推所以通常是在这里做什么的视口。

Note that preDrawDetails and postDrawDetails are also called in the calculation of "grobwidth" and "grobheight" units.
请注意,preDrawDetails和postDrawDetails也称为"grobwidth"和"grobheight"单位计算。


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

None of these functions are expected to return a value.
没有这些功能预计将返回一个值。


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


Paul Murrell



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

grid.draw
grid.draw

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-2 16:58 , Processed in 0.024437 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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