bbn.network.diagram {bbnet} | R Documentation |
Create Network Diagram from Bayesian Belief Network Data
Description
bbn.network.diagram()
generates a network diagram from a specified Bayesian Belief Network (BBN
),
allowing for the visualization of the relationships and interactions between nodes
.
Usage
bbn.network.diagram(
bbn.network,
font.size = 0.7,
arrow.size = 4,
arrange = layout_on_sphere
)
Arguments
bbn.network |
A dataframe, with a first column called |
font.size |
Changes the font in the figure produced. Default = 0.7.
The value here is a multiplier of the default font size used in the |
arrow.size |
Changes the size of the arrows. Default = 4. Note, sizes do vary based on interaction strength, so this is a multiplier for visualisation purposes. Negative interactions are shown by red arrows, and positive interactions by black arrows. |
arrange |
this describes how the final diagram looks.
Default is |
Details
The diagram is created using edge
and node
data derived from the BBN
, with edges
representing
interactions (positive or negative) between nodes
.
bbn.network.diagram()
visualises all nodes
and interactions in a network, in a similar manner to bbn.visualise
, other than this is the full network.
Value
A plot of the network diagram, illustrating the interactions (both positive and negative) between nodes
.
Examples
data(my_network)
bbn.network.diagram(bbn.network = my_network, font.size=0.7,
arrow.size=4, arrange = layout_on_sphere)