save_plot | R Documentation |
Save R plot with presets file formats
save_plot(
plot,
file,
path = "R/figures",
size = c(148, 210),
format = "jpg",
dpi = NULL,
bg = "#FEFAEE"
)
plot |
R plot object |
file |
file name without extension |
path |
file path without trailing backslash |
size |
numeric vector for image width and height in mm, default to A5 |
format |
file format
|
dpi |
resolution (dpi) |
bg |
background color passed to ggsave function |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.