gtable
objectas_gtable()
performs the transformation of a gt_tbl
object to a
gtable
object.
as_gtable(data, plot = FALSE, text_grob = grid::textGrob)
A gtable
object.
The gt table data object
obj:<gt_tbl>
// required
This is the gt table object that is commonly created through use of the
gt()
function.
Render through the graphics device?
scalar<logical>
// default: FALSE
The plot
option determines whether the gtable
object should be rendered
on the graphics device.
Function for drawing text
function
// default: grid::textGrob
A function
which will be used to draw text. Defaults to
grid::textGrob()
but can be swapped to gridtext::richtext_grob()
to
better render HTML content.
13-6
v0.11.0
(July 9, 2024)
Other table export functions:
as_latex()
,
as_raw_html()
,
as_rtf()
,
as_word()
,
extract_body()
,
extract_cells()
,
extract_summary()
,
gtsave()