tikzsave | R Documentation |
Uses ggplot2::ggsave
with tikzDevice::tikz
to create the tikz figure
and then compiles using latexmk
.
tikzsave(
filename,
plot = ggplot2::last_plot(),
packages = NULL,
pre_begin_document = NULL,
recompile = TRUE,
create_png = FALSE,
quiet = TRUE,
...
)
filename |
File name to create on disk. |
plot |
Plot to save, defaults to last plot displayed. |
packages |
Vector of strings. If no |
pre_begin_document |
Verbatim text to include right before
|
recompile |
Logical. Since |
create_png |
Logical. If true, will also output a png in addition to the pdf. |
quiet |
Logical. If |
... |
Passed to |
Invisibly returns filename
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.