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

R语言:grid.show.layout()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 18:46:50 | 显示全部楼层 |阅读模式
grid.show.layout(grid)
grid.show.layout()所属R语言包:grid

                                        Draw a Diagram of a Grid Layout
                                         绘制网格布局图

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

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

This function uses Grid graphics to draw a diagram of a Grid layout.
此功能使用网格图形绘制网格布局图。


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


grid.show.layout(l, newpage=TRUE, bg = "light grey",
             cell.border = "blue", cell.fill = "light blue",
             cell.label = TRUE, label.col = "blue",
             unit.col = "red", vp = NULL)



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

参数:l
A Grid layout object.
网格布局对象。


参数:newpage
A logical value indicating whether to move on to a new page before drawing the diagram.
一个逻辑值,指明是否移动了新的一页,前绘制图表。


参数:bg
The colour used for the background.
用于背景颜色。


参数:cell.border
The colour used to draw the borders of the cells in the layout.
颜色来绘制布局中的单元格的边界。


参数:cell.fill
The colour used to fill the cells in the layout.
颜色用于填充布局中的单元。


参数:cell.label
A logical indicating whether the layout cells should be labelled.
一个逻辑指示是否应标明布局单元。


参数:label.col
The colour used for layout cell labels.
用于布局单元格标签的颜色。


参数:unit.col
The colour used for labelling the widths/heights of columns/rows.
颜色用于标签行/列的宽度/高度。


参数:vp
A Grid viewport object (or NULL).
一个网格视口对象(或NULL)。


Details

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

A viewport is created within vp to provide a margin for annotation, and the layout is drawn within that new viewport. The margin is filled with light grey, the new viewport is filled with white and framed with a black border, and the layout regions are filled with light blue and framed with a blue border. The diagram is annotated with the widths and heights (including units) of the columns and rows of the layout using red text. (All colours are defaults and may be customised via function arguments.)
创建视口内vp提供一个注解的保证金,并在新视口中绘制布局。保证金填充浅灰色,新视充满白色和黑色边框,框架和布局区域都充满了淡蓝色和蓝色边框框架。该图是标注使用红色文本布局的列和行的宽度和高度(包括单位)。 (所有的颜色是默认设置,并可以通过函数的参数定制。)


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

None.
没有。


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


Paul Murrell



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

Grid, viewport, grid.layout
电网,viewport,grid.layout


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


## Diagram of a simple layout [#一个简单的布局图]
grid.show.layout(grid.layout(4,2,
                     heights=unit(rep(1, 4),
                                  c("lines", "lines", "lines", "null")),
                     widths=unit(c(1, 1), "inches")))

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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