Compute the width and height in user-specified unit required for drawing the plot.
get_table_extra_dimensions(
dscale,
dcolor,
theme,
rows_more = NULL,
cols_more = NULL,
unit = "inches",
dscale_title_legend = NULL,
dcolor_title_legend = NULL,
margin_x = unit(1, "inches"),
margin_y = unit(1, "inches")
)a matrix containing the values defining the grobs scales.
(optional) a matrix of size (n,m) containing the values defining the grobs colors.
a list of theme parameters. Use an instance of ttheme_awesome.
(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.
(optional) choose any unit that is valid for grid::unit.
(optional) title for the colorbar providing a legend for scales.
(optional) title for the colorbar providing a legend for colors
(optional) use it to fine-tune the width of the plot if some elements are not displayed correctly.
(optional) use it to fine-tune the height of the plot if some elements are not displayed correctly.
a list with dimensions of the global plot and of parts of the plot.