graphviz.plot: Advanced Bayesian network plots

Description Usage Arguments Details Value Author(s) See Also

View source: R/frontend-plot.R

Description

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

Usage

1
2
graphviz.plot(x, highlight = NULL, layout = "dot",
  shape = "circle", main = NULL, sub = NULL)

Arguments

x

an object of class bn or bn.fit.

highlight

a list, see below.

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.

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.

Author(s)

Marco Scutari

See Also

plot.bn.


bnlearn documentation built on May 19, 2017, 11:55 p.m.

Search within the bnlearn package
Search all R packages, documentation and source code