Plot the graph associated with a Bayesian network using the Rgraphviz package.
an object of class
a list, see below.
a character string, the layout argument that will be passed to
Rgraphviz. Possible values are
a character string, the shape of the nodes. Can be
a character string, the main title of the graph. It's plotted at the top of the graph.
a character string, a subtitle which is plotted at the bottom of the graph.
highlight argument is a list with at least one of the following
nodes: a character vector, the labels of the nodes to be
arcs: the arcs to be highlighted (a two-column matrix, whose
columns are labeled
and optionally one or more of the following graphical parameters:
col: an integer or character string (the highlight colour for
the arcs and the node frames). The default value is
textCol: an integer or character string (the highlight colour
for the labels of the nodes). The default value is
fill: an integer or character string (the colour used as a
background colour for the nodes). The default value is
lwd: a positive number (the line width of highlighted arcs).
It overrides the line width settings in
default value is to use the global settings of Rgraphviz.
lty: the line type of highlighted arcs. Possible values are
0, 1, 2, 3, 4, 5, 6, "blank", "solid", "dashed", "dotted", "dotdash",
"longdash" and "twodash". The default value is to use the global
settings of Rgraphviz.
graphviz.plot() returns invisibly the
graph object produced by
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.