as_gtable() performs the transformation of a gt_tbl object to a
gtable object.
Usage
as_gtable(data, plot = FALSE, text_grob = grid::textGrob)Arguments
- data
The gt table data object
obj:<gt_tbl>// requiredThis is the gt table object that is commonly created through use of the
gt()function.- plot
Render through the graphics device?
scalar<logical>// default:FALSEThe
plotoption determines whether thegtableobject should be rendered on the graphics device.- text_grob
Function for drawing text
function// default:grid::textGrobA
functionwhich will be used to draw text. Defaults togrid::textGrob()but can be swapped togridtext::richtext_grob()to better render HTML content.
See also
Other table export functions:
as_latex(),
as_raw_html(),
as_rtf(),
as_word(),
extract_body(),
extract_cells(),
extract_summary(),
gtsave()