graphviz.plot {bnlearn}R Documentation

Advanced Bayesian network plots

Description

Plot the graph associated with a Bayesian network using the Rgraphviz package.

Usage

graphviz.plot(x, highlight = NULL, groups, layout = "dot",
  shape = "circle", main = NULL, sub = NULL, render = TRUE)

Arguments

x

an object of class bn or bn.fit.

highlight

a list, see below.

groups

a list of character vectors, representing groups of node labels of nodes that should be plotted close to each other.

layout

a character string, the layout argument that will be passed to Rgraphviz. Possible values are dots, neato, twopi, circo and fdp. See Rgraphviz documentation for details.

shape

a character string, the shape of the nodes. Can be circle, ellipse or rectangle.

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.

render

a logical value. If TRUE, graphviz.plot() actually draws the figure in addition to returning the corresponding graph object. If FALSE, no figure is produced.

Details

The highlight argument is a list with at least one of the following elements:

and optionally one or more of the following graphical parameters:

Value

graphviz.plot() returns invisibly the graph object produced by Rgraphviz. It can be further modified using the commands present in the graph and Rgraphviz packages.

Author(s)

Marco Scutari

See Also

plot.bn.


[Package bnlearn version 4.5 Index]