This function is a copy of the internal function gtable_table of gridExtra package.
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",
...
)data.frame or matrix
optional unit.list specifying the grob widths
optional unit.list specifying the grob heights
grob-drawing function
named list of params passed to fg_fun
grob-drawing function
named list of params passed to bg_fun
unit.list object specifying the padding between adjacent cells.
optional name of the grob
optional viewport
optional parameter passed to table_params.
additional parameters passed to add_table_params.
A gtable.