Export graph in DOCX format. See notes to understand why this is experimental.
export_graph_as_docx(
g = NULL,
plotnames = NULL,
tblid,
output_dir,
title = NULL,
footers = NULL,
orientation = "portrait",
plotwidth = 8,
plotheight = 5.51,
units = c("in", "cm", "mm", "px")[1],
border = flextable::fp_border_default(width = 0.75, color = "black")
)(optional) Default = NULL. A ggplot2 object, or a list
of them, to export. At least one of g or plotnames must be provided.
If both are provided, 'g' precedes and 'plotnames' will be ignored.
(optional) Default = NULL. A file path, or a list of them,
to previously saved .png files. These will be opened and
exported in the output file. At least one of g or plotnames must be provided.
If both are provided, 'g' precedes and 'plotnames' will be ignored.
Character. Output ID that will appear in the Title and footer.
Character. File path where to save the output.
(optional) Default = NULL. Character, or list of them, with the titles to be displayed.
(optional) Default = NULL. Character, or list of them, with the footers to be displayed.
(optional) Default = "portrait". One of: "portrait", "landscape".
(optional) Default = 8. Plot size in units expressed by the units argument. If not supplied, uses the size of the current graphics device.
(optional) Default = 5.51. Plot size in units expressed by the units argument. If not supplied, uses the size of the current graphics device.
(optional) Default = "in". One of the following units in which the plotwidth and plotheight arguments are expressed: "in", "cm", "mm" or "px".
(optional). An fp_border object to use as borders for the Title
and Footers.