This function uses the visNetwork 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 how much more inhibited or active that node is, when
comparing the average model classified in the 'good' category vs the average
'bad' one.
plot_avg_state_diff_graph_vis(net, diff, layout, title)igraph graph object (to be translated to a visNetwork object)
numeric vector. Every value is in the [-1,1] interval and
represents the average activity difference of each node. The node names have
to be specified in the names attribute of the given vector. For example,
diff could be the result of using the function
get_avg_activity_diff_based_on_specific_synergy_prediction.
a (nx2) numeric matrix of x-y coordinates (2 columns) for each
of the nodes (n) in the net igraph object
string. The title of the visNetwork plot
Other network plotting functions: plot_avg_link_operator_diff_graphs,
plot_avg_link_operator_diff_graph,
plot_avg_state_diff_graphs,
plot_avg_state_diff_graph