Network showing modules as nodes

Share:

Description

This function modifies node coordinates to allow a clearer depiction of complex networks. Nodes are moved along the axis connecting the original position to the module centroid. The magnitude of such movement is defined by user.

Arguments

a two columns matrix containing the X and Y coordinates of each node in the original network

network

a matrix describing the original network. Can be either a 0/1 matrix or a weighted matrix. Row names must contain node names.

shift

a numeric defining the magnitude of node shift, limited between 0 (coinciding with the original location) and 1 (coinciding with the module centroid location).

max.lwd.edge

if shift=1, a numeric defining the line width for the maximum number of connections between modules

min.lwd.edge

if shift=1, a numeric defining the line width for the minimum number of connections between modules

max.vertex.size

if shift=1, a numeric defining the size of the node representing the largest module

min.vertex.size

if shift=1, a numeric defining the size of the node representing the smallest module

label.size

a numeric defining the size of node labels, referred to its particular node size

bgcol

a vector of strings representing the background colour for each node

main

a string, the title for the plot (no title by default)

Details

If 'shift=1', all nodes belonging to a module are represented as a single node depicted in the module centroid. In that case, node size is proportional to the number of element in this module and edge widths are proportional to the number of connections found between modules.