strength.plot(x, strength, threshold, cutpoints, highlight = NULL,
layout = "dot", shape = "circle", main = NULL, sub = NULL, debug = FALSE)
bn
.bn.strength
computed from the object
of class bn
corresponding to the x
argument.graphviz.plot
for details.dots
, neato
,
twopi
, circo
and fdp
. See Rgraphviz documentation
for details.circle
,
ellipse
or rectangle
.TRUE
a lot of debugging output is
printed; otherwise the function is completely silent.graphAM
used to format and render the plot. It can
be further modified using the commands present in the graph and
Rgraphviz packages.threshold
argument is used to determine which arcs are supported
strongly enough by the data to be deemed significant:
threshold
is equal to the value of the
alpha
argument used in the call to arc.strength
, which in
turn defaults to the one used by the learning algorithm (if any) or to
0.05
.
threshold
is
0
.
threshold
is 0.5
.
cutpoints
argument is an array of numeric values used to divide
the range of the strength coefficients into intervals. The interval each
strength coefficient falls into determines the line width of the corresponding
arc in the plot. The default intervals are delimited by unique(c(0, threshold/c(10, 5, 2, 1.5, 1), 1))
if the coefficients are computed from conditional independence tests, by 1 - unique(c(0, threshold/c(10, 5, 2, 1.5, 1), 1))
for bootstrap estimates or by the quantiles quantile(-s[s < threshold], c(0.50, 0.75, 0.90, 0.95, 1))
of the significant coefficients if network scores are used.## Not run: ------------------------------------
# # plot the network learned by gs().
# res = set.arc(gs(learning.test), "A", "B")
# strength = arc.strength(res, learning.test, criterion = "x2")
# strength.plot(res, strength)
# # add another (non-significant) arc and plot the network again.
# res = set.arc(res, "A", "C")
# strength = arc.strength(res, learning.test, criterion = "x2")
# strength.plot(res, strength)
## ---------------------------------------------
Run the code above in your browser using DataLab