grid.show.viewport(grid)
grid.show.viewport()所属R语言包:grid
Draw a Diagram of a Grid Viewport
绘制网格视图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function uses Grid graphics to draw a diagram of a Grid viewport.
此功能使用网格图形绘制网格视图。
用法----------Usage----------
grid.show.viewport(v, parent.layout = NULL, newpage = TRUE,
border.fill="light grey",
vp.col="blue", vp.fill="light blue",
scale.col="red",
vp = NULL)
参数----------Arguments----------
参数:v
A Grid viewport object.
电网视口对象。
参数:parent.layout
A grid layout object. If this is not NULL and the viewport given in v has its location specified relative to the layout, then the diagram shows the layout and which cells v occupies within the layout.
网格布局对象。如果这是不为NULL,v有其指定的位置相对布局视口中,然后图显示的布局和单元v在布局中占有。
参数:newpage
A logical value to indicate whether to move to a new page before drawing the diagram.
一个逻辑值,指示是否之前绘制图表移动到一个新的页面。
参数:border.fill
Colour to fill the border margin.
颜色,以填补边界保证金。
参数:vp.col
Colour for the border of the viewport region.
颜色的视口区域的边界。
参数:vp.fill
Colour to fill the viewport region.
颜色填补了视口区域。
参数:scale.col
Colour to draw the viewport axes.
色彩绘制在视口中轴。
参数:vp
A Grid viewport object (or NULL).
一个网格视口对象(或NULL)。
Details
详情----------Details----------
A viewport is created within vp to provide a margin for annotation, and the diagram is drawn within that new viewport. By default, the margin is filled with light grey, the new viewport is filled with white and framed with a black border, and the viewport region is filled with light blue and framed with a blue border. The diagram is annotated with the width and height (including units) of the viewport, the (x, y) location of the viewport, and the x- and y-scales of the viewport, using red lines and text.
创建视口内vp提供一个注解的保证金,并在新视口中绘制图。默认情况下,保证金与浅灰色,新视充满了白色和黑色边框框架填充,填充浅蓝色和蓝色边框框架和视口区域。该图是标注的宽度和高度(包括单位),视口,视口的位置(X,Y),在X和Y-视口尺度,用红色线条和文字。
值----------Value----------
None.
没有。
作者(S)----------Author(s)----------
Paul Murrell
参见----------See Also----------
Grid, viewport
电网,viewport
举例----------Examples----------
## Diagram of a sample viewport[#样本“视口中图]
grid.show.viewport(viewport(x=0.6, y=0.6,
w=unit(1, "inches"), h=unit(1, "inches")))
grid.show.viewport(viewport(layout.pos.row=2, layout.pos.col=2:3),
grid.layout(3, 4))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|