| gtable_show_layout {gtable} | R Documentation |
Visualise the layout of a gtable.
Description
This function is a simple wrapper around grid::grid.show.layout() that
allows you to inspect the layout of the gtable.
Usage
gtable_show_layout(x, ...)
Arguments
x |
a gtable object
|
... |
Arguments passed on to grid::grid.show.layout
lA Grid layout object.
newpageA logical value indicating whether to move on
to a new page before drawing the diagram.
vp.expositive number, typically in (0,1], specifying the
scaling of the layout.
bgThe colour used for the background.
cell.borderThe colour used to draw the borders of the cells
in the layout.
cell.fillThe colour used to fill the cells in the layout.
cell.labelA logical indicating whether the layout cells
should be labelled.
label.colThe colour used for layout cell labels.
unit.colThe colour used for labelling the widths/heights of
columns/rows.
vpA Grid viewport object (or NULL).
|
Examples
gt <- gtable(widths = grid::unit(c(1, 0.5, 2), c("null", "cm", "null")),
heights = grid::unit(c(0.2, 1, 3), c("inch", "null", "cm")))
gtable_show_layout(gt)
[Package
gtable version 0.3.5
Index]