A logical value indicating whether to move on
to a new page before drawing the diagram.
vp.ex
positive number, typically in (0,1], specifying the
scaling of the layout.
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).
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.)
Value
None.
Author(s)
Paul Murrell
See Also
Grid,
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")))
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(grid)
> png(filename="/home/ddbj/snapshot/RGM3/R_rel/result/grid/grid.show.layout.Rd_%03d_medium.png", width=480, height=480)
> ### Name: grid.show.layout
> ### Title: Draw a Diagram of a Grid Layout
> ### Aliases: grid.show.layout
> ### Keywords: dplot
>
> ### ** 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")))
>
>
>
>
>
> dev.off()
null device
1
>