Description Usage Arguments Value Author(s) Examples
A function of for plotting the graphical representation of a weigted weighted adjacencey amatrix. Build for convenience and not for speed.
1 2 |
amat |
A numeric adjacency a matrix with values between 0 and 1. |
diff.exprs |
A numeric vector of lencth |
labels |
The labels of the nodes. |
vcol |
The colors of the nodes. Default is black. |
ecol |
The colour of the edges. Default is black. |
layout |
A function providing the layout of the graph. See layout. |
... |
Aguments passed to |
Invisibly returns the igraph-object and the layout in a list
.
Anders Ellern Bilgrau <anders.ellern.bilgrau (at) gmail.com>
1 2 3 4 5 6 7 8 9 | # Construct a random adjacency matrix
amat <- replicate(10, runif(10))
amat[upper.tri(amat)] <- amat[lower.tri(amat)]
# Plot the graph
plotModuleGraph(amat,
labels = "",
vcol = 1:10,
diff.exprs = 3 + 3*runif(10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.