Learn R Programming

bnlearn (version 0.3)

plot.bn: Plot a Bayesian Network

Description

Plot the graph associated with a Bayesian network.

Usage

## S3 method for class 'bn':
plot(x, ylim = c(0,600), xlim = ylim, radius = 250, 
   arrow = 35, highlight = NULL, color = "red", ...)

Arguments

x
an object of class bn.
ylim
a numeric vector with two components containing the range on y-axis.
xlim
a numeric vector with two components containing the range on x-axis.
radius
a numeric value containing the radius of the nodes.
arrow
a numeric value containing the length of the arrow heads.
highlight
an array of character strings, representing the labels of the nodes (and corresponding arcs) to be highlighted.
color
an integer or character string (the highlight colour).
...
other parameters to be passed through to plotting functions.