graphviz.plot {bnlearn} | R Documentation |
Plot the graph associated with a Bayesian network using the Rgraphviz package.
graphviz.plot(x, highlight = NULL, layout = "dot", main = NULL, sub = NULL)
x |
an object of class bn . |
highlight |
a list, see below. |
layout |
a character string, the layout parameter to
be passed to Rgraphviz. Possible values are dots ,
neato , twopi , circo and fdp . See
Rgraphviz documentation for details. |
main |
a character string, the main title of the graph. It's plotted at the top of the graph. |
sub |
a character string, a subtitle which is plotted at the bottom of the graph. |
The highlight parameter is a list with at least one of the following elements:
nodes
: a character vector, the labels
of the nodes to be highlighted.
arcs
: the arcs to be highlighted (a
two-column matrix, whose columns are labeled
from
and to
).
and optionally one or more of the following formatting parameters:
col
: an integer or character string (the
highlight colour). The default value is red
.
fill
: an integer or character string (the
colour used as a background colour for the nodes).
The default value is white
.
Marco Scutari