Make diagrams in R using viz.js with infrastructure provided by htmlwidgets.
grViz(diagram = "", engine = "dot", allow_subst = TRUE, options = NULL,
width = NULL, height = NULL)
spec for a diagram as either text, filename string, or file connection.
string for the Graphviz layout engine;
can be dot
(default), neato
,
circo
, or twopi
. For more information
see https://github.com/mdaines/viz.js#usage.
a boolean that enables/disables substitution functionality.
parameters supplied to the htmlwidgets framework.
an optional parameter for specifying the width of the resulting graphic in pixels.
an optional parameter for specifying the height of the resulting graphic in pixels.
An object of class htmlwidget
that
will intelligently print itself into HTML in a
variety of contexts including the R console, within
R Markdown documents, and within Shiny output
bindings.