Description Usage Arguments Value Author(s) See Also Examples
Transfer the named node attribute from the R graph (found in obj@graph) to Cytoscape. This method is typically called by displayGraph, which will suffice for most users' needs. It transfers the specified node attributes, for all nodes, from the cw@graph slot to Cytoscape.
1 | setNodeAttributes(obj, attribute.name)
|
obj |
a |
attribute.name |
a |
None.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
setNodeAttributesDirect setEdgeAttributes setEdgeAttributesDirect sendEdges sendNodes displayGraph
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('setNodeAttributes.test', graph=makeSimpleGraph())
attribute.names <- noa.names (cw@graph)
sendNodes (cw)
for (attribute.name in attribute.names){
setNodeAttributes (cw, attribute.name)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.