as_pdf | R Documentation |
pdf wrapper that evaluates an arbitrary expression.
as_pdf(fname, w, h, expr, TEST = FALSE, bg = "white")
fname |
file path |
w |
the requested width of the PDF |
h |
the requested height of the PDF |
expr |
the expression to evaluate to produce the plot |
TEST |
if FALSE (the default) print to PDF, otherwise print to the current graphics device |
bg |
set the background color of the PDF, defaults to 'white' |
the output of the resulting expression (the plot is likely produced by side effect but may additionally 'return' a value)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.