The code is inspired by the tableGrob function gridExtra.
gtable_extra(
dscale,
dcolor = NULL,
dscale_min = NULL,
dscale_max = NULL,
rows = rownames(dscale),
cols = colnames(dscale),
rows_more = NULL,
cols_more = NULL,
theme = ttheme_awesome(),
vp = NULL
)a matrix containing the values defining the grobs scales.
(optional) a matrix of size (n,m) containing the values defining the grobs colors.
(optional) value for setting the minimum scale size of foreground grobs. Entries in the
dscale matrix below dscale_min will have a scale of 0 (no grob).
(optional) value for setting the maximum scale size of foreground grobs. Entries in the
dscale matrix above dscale_max will have a scale of 1.
(optional) a character vector.
(optional) a character vector.
(optional) a named list of additional columns (right-part) of the plot for describing the rows. The list names will be used as column headers.
(optional) a named list of additional rows (top-part) of the plot for describing the columns The list names will be used as row headers.
a list of theme parameters. Use an instance of ttheme_awesome.
optional viewport.
A gtable object.