View source: R/save_gtsummary.R
save_gtsummary | R Documentation |
This function is used to output the table created by the gtsummary package in PowerPoint or Word, or as an image file.
It just wraps gtsummary
's as_flex_table
and flextalbe
's save_as*
functions.
save_gtsummary(
x,
path,
values = NULL,
pr_section = NULL,
zoom = 3,
expand = 10,
webshot = "webshot"
)
x |
gtsummary table object. |
path |
PowerPoint or Word or Image file to be created. It should end with filename extensions. Supported filename extensions: .pptx, .docx, .png, .pdf, .jpg. |
values |
a list (possibly named), each element is a flextable object. If named objects, names are used as slide titles. |
pr_section |
a |
zoom |
parameters used by |
expand |
parameters used by |
webshot |
webshot package as a scalar character, one of "webshot" or "webshot2". |
The as_flex_table
argument of gtsummary
is the default, so if you want to fine-tune it, you can do it yourself.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.