emba (version 0.1.1)

plot_avg_state_diff_graph: Plot the graph of average state differences (igraph)

Description

This function uses the 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 how much more inhibited or active that node is, when comparing the average model classified in the 'good' category vs the average 'bad' one.

Usage

plot_avg_state_diff_graph(net, diff, layout, title)

Arguments

net

igraph graph object

diff

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_tp_predictions.

layout

a (nx2) numeric matrix of x-y coordinates (2 columns) for each of the nodes (n) in the net igraph object

title

string. The title of the igraph plot

See Also

get_node_colors

Other network plotting functions: plot_avg_link_operator_diff_graphs, plot_avg_link_operator_diff_graph, plot_avg_state_diff_graph_vis, plot_avg_state_diff_graphs