gtable_table: Build a table with foreground and background grobs.

Description Usage Arguments Value Author(s)

View source: R/gtables.R

Description

This function is a copy of the internal function gtable_table of gridExtra package.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
gtable_table(
  d,
  widths,
  heights,
  fg_fun = text_grob,
  fg_params = list(),
  bg_fun = NULL,
  bg_params = NULL,
  padding = unit(c(4, 4), "mm"),
  name = "table",
  vp = NULL,
  rep_mode = "row",
  ...
)

Arguments

d

data.frame or matrix

widths

optional unit.list specifying the grob widths

heights

optional unit.list specifying the grob heights

fg_fun

grob-drawing function

fg_params

named list of params passed to fg_fun

bg_fun

grob-drawing function

bg_params

named list of params passed to bg_fun

padding

unit.list object specifying the padding between adjacent cells.

name

optional name of the grob

vp

optional viewport

rep_mode

optional parameter passed to table_params.

...

additional parameters passed to add_table_params.

Value

A gtable.

Author(s)

Yoann Pradat


tableExtra documentation built on Oct. 29, 2021, 5:06 p.m.