current.viewport(grid)
current.viewport()所属R语言包:grid
Get the Current Grid Viewport (Tree)
获取当前电网视口(树)
译者:生物统计家园网 机器人LoveR
描述----------Description----------
current.viewport() returns the viewport that Grid is going to draw into.
current.viewport()返回视口,电网会吸引到。
current.vpTree returns the entire Grid viewport tree.
current.vpTree返回整个电网视口树。
current.vpPath returns the viewport path to the current viewport.
current.vpPath返回到当前视口中的“视口的路径。
current.transform returns the transformation matrix for the current viewport.
current.transform返回为当前视口变换矩阵。
用法----------Usage----------
current.viewport(vp=NULL)
current.vpTree(all=TRUE)
current.vpPath()
current.transform()
参数----------Arguments----------
参数:vp
A Grid viewport object. Use of this argument has been deprecated.
电网视口对象。利用这一论点已被弃用。
参数:all
A logical value indicating whether the entire viewport tree should be returned.
一个逻辑值,该值指示是否应归还整个视口树。
Details
详情----------Details----------
If all is FALSE then current.vpTree only returns the subtree below the current viewport.
如果all是FALSE然后current.vpTree只返回当前视口中以下的子树。
值----------Value----------
A Grid viewport object from current.viewport or current.vpTree.
current.viewport或current.vpTree网格“视口对象。
current.transform returns a 4x4 transformation matrix.
current.transform返回一个4x4变换矩阵。
The viewport path returned by current.vpPath is NULL if the current viewport is the ROOT viewport
视口中的路径返回current.vpPath是NULL如果当前视口是ROOT视口
作者(S)----------Author(s)----------
Paul Murrell
参见----------See Also----------
viewport
viewport
举例----------Examples----------
grid.newpage()
pushViewport(viewport(width=0.8, height=0.8, name="A"))
pushViewport(viewport(x=0.1, width=0.3, height=0.6,
just="left", name="B"))
upViewport(1)
pushViewport(viewport(x=0.5, width=0.4, height=0.8,
just="left", name="C"))
pushViewport(viewport(width=0.8, height=0.8, name="D"))
current.vpPath()
upViewport(1)
current.vpPath()
current.vpTree()
current.viewport()
current.vpTree(all=FALSE)
popViewport(0)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|