This function uses the
plot.igraph package to plot a network
of nodes. The nodes are positioned according to the specified coordinates
given by the
layout parameter and the colors are derived using the
diff values and the
get_node_colors function. The color
of each node indicates if the node's boolean function has on average the
AND NOT or the OR NOT link operator when comparing the average
model classified in the 'good' category vs the average bad' one. A non-colored
node (white) will indicate nodes that do not have the link operator in their
respective boolean equation (where they function as the target).
igraph graph object
numeric vector. Every value is in the [-1,1] interval and
represents the average link operator value difference of each node. The node
names have to be specified in the names attribute of the given vector.
a (nx2) numeric matrix of x-y coordinates (2 columns) for each
of the nodes (n) in the
string. The title of the igraph plot
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.