Description Usage Arguments Note Author(s) See Also Examples
Plot the graph associated with a small Bayesian network.
1 2 3 |
x |
an object of class |
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 |
a vector 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. |
The following graphical parameters are always overridden:
axes
is set to FALSE
.
xlab
is set to an empty string.
ylab
is set to an empty string.
Marco Scutari
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(learning.test)
res = gs(learning.test)
plot(res)
## highlight node B and related arcs.
plot(res, highlight = "B")
## highlight B and its Markov blanket.
plot(res, highlight = c("B", mb(res, "B")))
## a more compact plot.
par(oma = rep(0, 4), mar = rep(0, 4), mai = rep(0, 4),
plt = c(0.06, 0.94, 0.12, 0.88))
plot(res)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.