xpose_save | R Documentation |
Built as a wrapper around ggsave, this function facilitates the export of xpose plots.
xpose_save(
plot = last_plot(),
file = NULL,
dir = NULL,
device = NULL,
scale = 1,
width = 7,
height = 6,
units = c("in", "cm", "mm", "px"),
dpi = 200,
limitsize = TRUE,
bg = NULL,
...
)
plot |
A xpose plot object. |
file |
A name with file extension (if device is |
dir |
Directory under which the xpose plots will be saved. Template
variables such as |
device |
Graphical device to use. Can be either be a device function
(e.g. |
scale |
Multiplicative scaling factor. |
width , height , units |
Plot size in in |
dpi |
Plot resolution. Also accepts a string input: "retina" (320), "print" (300), or "screen" (72). Applies only to raster output types. |
limitsize |
When |
bg |
Background color. If |
... |
Other arguments passed on to the graphics device function, as
specified by |
## Not run:
xpdb_ex_pk %>%
dv_vs_ipred() %>%
xpose_save(file = file.path(tempdir(), "dv_vs_ipred_example.pdf"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.