qqSave | R Documentation |
Quick-Save ggplot objects
qqSave(
ggobj,
ext = MarkdownHelpers::unless.specified("b.def.ext", def = "png"),
also.pdf = FALSE,
save.obj = FALSE,
bgcol = "white",
page = c(F, "A4p", "A4l", "A5p", "A5l")[1],
title = FALSE,
fname = FALSE,
suffix = NULL,
w = 4,
h = w,
...
)
ggobj |
Plot as ggplot object. |
ext |
File extension (.pdf / .png). |
also.pdf |
Save plot in both png and pdf formats. Default: FALSE. |
save.obj |
Save the ggplot object to a file. Default: FALSE. |
bgcol |
Plot background color. Default: "white". |
page |
Set page size to a predefined value, eg. "A4".
Default: |
title |
title field for pdf file (saved into file metadata) |
fname |
Manual filename |
suffix |
A suffix added to the filename. Default: NULL. |
w |
Width of the plot. |
h |
Height of the plot. |
... |
Pass any other parameter of the corresponding plotting function (most of them should work). |
xplot <- ggplot2::qplot(12)
qqSave(ggobj = xplot)
qqSave(ggobj = xplot, ext = "pdf")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.