Description Usage Arguments Value Examples
Use viz.js with V8
to get the diagram rendered as SVG
in R instead of the browser.
1 | export_svg(gv)
|
gv |
htmlwidget to render as SVG. |
string
of SVG XML text.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
library(DiagrammeR)
svg <- export_svg(grViz('digraph{a->b; c->a; c->b; c->d;}'))
# this can then be used with htmltools and can save significantly
# on size of output using svg rather than unrendered grViz
library(htmltools)
html_print(HTML(svg))
## End(Not run)
|
sh: 0: Can't open /dev/null
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.