Displaying 1 result from an estimated 1 matches for "nodesfr".
Did you mean:
nodes
2011 Feb 13
1
RCytoscape setPosition error
...n set of nodes column-wise in cytoscape using
RCytoscape
A----D
B----E
C----F
-------------------
g <- new ('graphNEL', edgemode='undirected')
cw <- CytoscapeWindow ('smallExample', graph=RCytoscape::makeSimpleGraph())
layout (cw, 'jgraph-spring')
redraw(cw)
nodesFr = c('A', 'B', 'C')
nodesTo =c('D', 'E', 'F')
nodesAll = union(nodesFr, nodesTo)
nElemFr = length(nodesFr)
nElemTo = length(nodesTo)
g <- graph::addNode(nodesAll, g)
setPosition(cw, nodesFr , c(400, 400, 400), c(100, 200, 300))
setPosition(cw, no...