Visualization of modules in an abstract way. In the function plot.abstract.nodes
, nodes in a module are replaced by a single node and the relative size of a node is proportional to the total number of nodes in a module. In the functions plot.abstract.module
, plot.abstract.nodes
, edges between two modules are replaced by a single edge and the total number of edges between two modules are reflected by the relative edge-width.
"plot"(x, mod.list=NULL, rest.module=TRUE,
color.random=FALSE, nodes.color = NULL, edge.colors=NULL,
layout.function=NULL,tkplot=FALSE,v.sf = 0, e.sf = 0,lab.color=NULL,
lab.cex=NULL, lab.dist=NULL, bg="black", ... )
x
is a graph object created from an adjacency matrix or from a tabular data of two columns using graph()
function available in igraph
mod.list
is a list object each components of mod.list consists a vector of module to be plotted.
...
parameter for other inputs. require(igraph)
data("PPI_Athalina")
data("modules_PPI_Athalina")
plot.abstract.nodes(g1, mod.list = lm,
edge.colors = c("red","green","blue","orange"))
Run the code above in your browser using DataLab