plotModuleGraph: Plot the graphical representation of a weighted adjacency...

Description Usage Arguments Value Author(s) Examples

Description

A function of for plotting the graphical representation of a weigted weighted adjacencey amatrix. Build for convenience and not for speed.

Usage

1
2
plotModuleGraph(amat, diff.exprs = NULL, labels = rownames(amat),
  vcol = "Black", ecol = "Black", layout = layout.circle, ...)

Arguments

amat

A numeric adjacency a matrix with values between 0 and 1.

diff.exprs

A numeric vector of lencth ncol(amat) giving the importance (e.g. evidence for differential expression) of the node/gene.

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 plot.igraph.

Value

Invisibly returns the igraph-object and the layout in a list.

Author(s)

Anders Ellern Bilgrau <anders.ellern.bilgrau (at) gmail.com>

Examples

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))

AEBilgrau/Bmisc documentation built on May 5, 2019, 11:28 a.m.