Learn R Programming

bnstruct (version 1.0)

plot: plot a BN as a picture.

Description

plot a BN as a picture.

Usage

"plot"(x, ..., use.node.names = TRUE, frac = 0.2, max.weight = max(dag(x)), node.col = rep("white", ncol(dag(x))), plot.wpdag = FALSE)

Arguments

x
a BN object.
...
potential further arguments for methods.
use.node.names
TRUE if node names have to be printed. If FALSE, numbers are used instead.
frac
fraction
max.weight
max.weight
node.col
list of (R) colors for the nodes.
plot.wpdag
if TRUE plot the network according to the WPDAG computed using bootstrap instead of the DAG.