File: gtable_show_layout.Rd

package info (click to toggle)
r-cran-gtable 0.3.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 544 kB
  • sloc: sh: 8; makefile: 5
file content (41 lines) | stat: -rw-r--r-- 1,559 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grid.R
\name{gtable_show_layout}
\alias{gtable_show_layout}
\title{Visualise the layout of a gtable.}
\usage{
gtable_show_layout(x, ...)
}
\arguments{
\item{x}{a gtable object}

\item{...}{
  Arguments passed on to \code{\link[grid:grid.show.layout]{grid::grid.show.layout}}
  \describe{
    \item{\code{l}}{A Grid layout object.}
    \item{\code{newpage}}{A logical value indicating whether to move on
    to a new page before drawing the diagram.}
    \item{\code{vp.ex}}{positive number, typically in \eqn{(0,1]}, specifying the
    scaling of the layout.}
    \item{\code{bg}}{The colour used for the background.}
    \item{\code{cell.border}}{The colour used to draw the borders of the cells
    in the layout.}
    \item{\code{cell.fill}}{The colour used to fill the cells in the layout.}
    \item{\code{cell.label}}{A logical indicating whether the layout cells
    should be labelled.}
    \item{\code{label.col}}{The colour used for layout cell labels.}
    \item{\code{unit.col}}{The colour used for labelling the widths/heights of
    columns/rows.}
    \item{\code{vp}}{A Grid viewport object (or NULL).}
  }}
}
\description{
This function is a simple wrapper around \code{\link[grid:grid.show.layout]{grid::grid.show.layout()}} that
allows you to inspect the layout of the gtable.
}
\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)

}