load_json_graph: Loads a Cytoscape JSON as an igraph graph

Description Usage Arguments Value Examples

View source: R/library.R

Description

Loads a Cytoscape JSON as an igraph graph

Usage

1

Arguments

jdat

a loaded Cytoscape JSON

Value

an igraph-graph

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
jdat = fromJSON(file = 'xy.json')
g = load_json_graph(jdat)
list.edge.attributes(g)
list.vertex.attributes(g)

plot.igraph(g,
           layout=-cbind(V(g)$posx, V(g)$posy),
           rescale=T,
           edge.arrow.size=0.1,
           vertex.size =7,
           vertex.label.cex = 0.5)

## End(Not run)

BodenmillerGroup/bbRtools documentation built on May 20, 2020, 1:36 a.m.