Description Usage Arguments Functions Examples
This makes a PDF file which can be included by knitr Sweave.
1 2 3 4 | prisma_pdf(x, filename = "prisma.pdf")
prisma_export(x, filename = "prisma.png", rsvg_fun = rsvg::rsvg_png,
...)
|
x |
output of call to |
filename |
path of output file |
rsvg_fun |
Function from 'rsvg' default being 'rsvg::rsvg_png' |
... |
Passed to 'rsvg_fun' |
prisma_export
: Export using any conversion function offered by 'rsvg'
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
g <- prisma(9, 8, 7, 6, 5, 4, 3, 2, 1)
prisma_pdf(g, "test.pdf")
knitr::include_graphics("test.pdf")
## End(Not run)
## Not run:
g_dot <- prisma_graph(9, 8, 7, 6, 1, 5, 1, 4, 1)
prisma_export(g_dot, "test.png", rsvg_fun = rsvg::rsvg_png)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.