gtable_table.Rd 1.14 KB
Newer Older
Pradat Yoann's avatar
Pradat Yoann committed
1
2
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gtables.R
3
4
5
\name{gtable_table}
\alias{gtable_table}
\title{Build a table with foreground and background grobs.}
Pradat Yoann's avatar
Pradat Yoann committed
6
\usage{
7
gtable_table(
Pradat Yoann's avatar
Pradat Yoann committed
8
9
10
11
12
13
14
15
16
  d,
  widths,
  heights,
  fg_fun = text_grob,
  fg_params = list(),
  bg_fun = rect_grob,
  bg_params = list(),
  padding = unit(c(4, 4), "mm"),
  name = "table",
17
18
  vp = NULL,
  ...
Pradat Yoann's avatar
Pradat Yoann committed
19
20
21
22
23
)
}
\arguments{
\item{d}{data.frame or matrix}

24
25
\item{widths}{optional \code{unit.list} specifying the grob widths}

Pradat Yoann's avatar
Pradat Yoann committed
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
\item{heights}{optional \code{unit.list} specifying the grob heights}

\item{fg_fun}{grob-drawing function}

\item{fg_params}{named list of params passed to fg_fun}

\item{bg_fun}{grob-drawing function}

\item{bg_params}{named list of params passed to bg_fun}

\item{padding}{\code{unit.list} object specifying the padding between adjacent cells.}

\item{name}{optional name of the grob}

\item{vp}{optional viewport}

42
\item{...}{additional parameters passed to add_table_params.}
Pradat Yoann's avatar
Pradat Yoann committed
43
44
45
46
47
48
49
50
51
52
53
}
\value{
A gtable.
}
\description{
This function is a copy of the internal function \code{gtable_table} of gridExtra package.
}
\author{
Yoann Pradat
}
\keyword{internal}