saveGG | R Documentation |
save a ggplot object with a name derived from the target name this is good because ggplot objects don't always play well with print and because it's good to attach mnemonic names when you have a lot of files TODO: Should probably have logic for mnemonic names for base plots
saveGG(
g,
target = makeArgs()[[1]],
ext = "pdf",
desc = "ggp",
crop = TRUE,
...
)
g |
graphical object to print |
target |
stem of filename (defaults to the target of the script) |
ext |
file extension (will use pdf if not specified) |
desc |
text to replace Rout in default target (ggp by default) |
crop |
logical: use knitr::plot_crop? |
... |
arguments to pass to ggsave call |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.