as.igraph: as.igraph

Description Usage Arguments Value Author(s) Examples

View source: R/as.igraph.R

Description

Converts the CoDiNA.plot into an igraph object.

Usage

1

Arguments

x

the output from the function plot.

Value

the CoDiNA plot as an igraph object.

Author(s)

Deisy Morselli Gysi <deisy at bioinf.uni-leipzig.de>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
suppressWarnings(RNGversion("3.5.0"))
Nodes = LETTERS[1:10]
Net1 = data.frame(Node.1 = sample(Nodes) , Node.2 = sample(Nodes), wTO = runif(10,-1,1))
Net2 = data.frame(Node.1 = sample(Nodes) , Node.2 = sample(Nodes), wTO = runif(10,-1,1))
Net3 = data.frame(Node.1 = sample(Nodes) , Node.2 = sample(Nodes), wTO = runif(10,-1,1))
DiffNet = MakeDiffNet (Data = list(Net1,Net2,Net3), Code = c('Net1', 'Net2', 'Net3') )
Graph = plot(x = DiffNet,
 layout = NULL, smooth.edges = TRUE,
 path = NULL, MakeGroups = FALSE, Cluster = FALSE,
 legend = TRUE, manipulation = FALSE, sort.by.Phi = FALSE)
x = as.igraph(Graph)

plot(x)

CoDiNA documentation built on July 15, 2020, 5:07 p.m.

Related to as.igraph in CoDiNA...