| writeObj | R Documentation |
Internal workhorse function called by ggwrite. Resolves the
combination of output formats and canvas sizes (via ggwrite_names),
and dispatches to write1 for each individual plot/format/canvas
combination. Handles both single plot objects and lists of plots, including
the onefile (multi-page PDF) case.
writeObj(
plot,
file,
script,
time,
model = model,
onefile,
use.names = FALSE,
formats,
canvas,
quiet = FALSE,
fun.path,
subdir,
name.all.pdf = "all.pdf",
method.png = c("ragg", "png"),
...
)
plot |
A plot object or a list of plot objects. See |
file |
Character string, base output file path, or |
script |
Character string or path to the calling script, used for stamping.
See |
time |
Character string or POSIXct timestamp used for stamping. |
model |
Character string or model object used for stamping and path construction. |
onefile |
Logical. If |
use.names |
Logical. If |
formats |
Character vector of file formats, a subset of |
canvas |
Canvas size specification. See |
quiet |
Logical. If |
fun.path |
Function or character string defining output directory structure.
See |
subdir |
Character string, subdirectory passed on to |
name.all.pdf |
Character string, file name to use for a combined multi-page
PDF when |
method.png |
Character string, one of |
... |
Passed on to |
NULL, invisibly. Files are written (and/or plots displayed) as
a side effect.
ggwrite, write1, ggwrite_names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.