| write1 | R Documentation |
Internal function that performs the actual device handling (opening a
png/agg_png or
pdf device, printing the plot, and closing the
device) for a single plot/file/size combination. Also applies stamping via
ggstamp before printing. If fn or type indicate
on-screen display ("x11"), the plot is printed directly without opening a
file device.
write1(
plot,
fn = NULL,
type = NULL,
onefile = FALSE,
size,
script,
time,
model,
quiet = FALSE,
subdir = NULL,
method.png = c("ragg", "png"),
fun.path = NULL,
stamp.format = NULL,
stamp.funs = NULL,
stamp.gg.style = NULL,
...
)
plot |
A single plot object ( |
fn |
Character string, output file name (without or with extension;
the extension is replaced/added based on |
type |
Character string, one of |
onefile |
Logical, passed to the |
size |
A list with |
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. |
quiet |
Logical. If |
subdir |
Character string, subdirectory passed on to |
method.png |
Character string, one of |
fun.path |
Function or character string defining output directory
structure, applied to |
stamp.format, stamp.funs, stamp.gg.style |
Passed to |
... |
Additional arguments. |
NULL, invisibly. Called for the side effect of writing a file
and/or displaying the plot.
ggwrite, writeObj, ggstamp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.