showViewport(grid)
showViewport()所属R语言包:grid
Display grid viewports.
显示网格视口。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Produces a graphical display of (by default) the current grid viewport tree. It is also possible to display only specific viewports. Each viewport is drawn as a rectangle and the leaf viewports are labelled with the viewport name.
生成的图形显示(默认)当前电网视口树。它也有可能只显示特定的视口。每个视口中绘制一个矩形和叶视口视口的名称标记。
用法----------Usage----------
showViewport(vp = NULL, recurse = TRUE, depth = NULL,
newpage = FALSE, leaves = FALSE,
col = rgb(0, 0, 1, 0.2), fill = rgb(0, 0, 1, 0.1),
label = TRUE, nrow = 3, ncol = nrow)
参数----------Arguments----------
参数:vp
If NULL, the current viewport tree is displayed. Otherwise, a viewport (or vpList, or vpStack, or vpTree) or a vpPath that specifies which viewport to display.
如果NULL,显示当前视口中树。否则,视口(或的vpList,或vpStack的,或vpTree的)或vpPath指定显示的视口。
参数:recurse
Should the children of the specified viewport also be displayed?
应指定视口的儿童也可以显示吗?
参数:depth
Only display viewports at the specified depth (may be a vector of depths).
只显示在指定的深度视口(可能是一个深度的矢量)。
参数:newpage
Start a new page for the display? Otherwise, the viewports are displayed on top of the current plot.
显示启动了新的一页?否则,视口中显示在当前的图之上。
参数:leaves
Produce a matrix of smaller displays, with each leaf viewport in its own display.
生产小型显示器的矩阵,叶在自己的显示与每个视口中。
参数:col
The colour used to draw the border of the rectangle for each viewport and to draw the label for each viewport. If a vector, then the first colour is used for the top-level viewport, the second colour is used for its children, the third colour for their children, and so on.
颜色用于绘制每个视口矩形的边界,并绘制每个视口标签。如果一个向量,那么第一种颜色是顶级的视口使用,第二个颜色用于其子女,为子女的第三种颜色等。
参数:fill
The colour used to fill each viewport. May be a vector as per col.
颜色用于填充每个视口。可能是一个向量,为每col。
参数:label
Should the viewports be labelled (with the viewport name)?
应视口被贴上(视口的名称)?
参数:nrow, ncol
The number of rows and columns when leaves is TRUE. Otherwise ignored.
行和列时leaves是TRUE。否则忽略。
参见----------See Also----------
viewport and grid.show.viewport
viewport和grid.show.viewport
举例----------Examples----------
showViewport(viewport(width=.5, height=.5))
showViewport(vpStack(viewport(width=.5, height=.5),
viewport(width=.5, height=.5)),
newpage=TRUE)
showViewport(vpStack(viewport(width=.5, height=.5),
viewport(width=.5, height=.5)),
fill=rgb(1:0, 0:1, 0, .1),
newpage=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|