Description Usage Arguments Value Author(s) See Also Examples
In the specified CytoscapeWindow, set the width of the specified node(s). Note that the node dimensions (width and width) must be unlocked for this to work. If they are locked, then node and width change together, as specified by a node size rule, or the setNodeSize method.
1 | setNodeWidthDirect(obj, node.names, new.widths)
|
obj |
a |
node.names |
one or more |
new.widths |
one or more |
None.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
setNodeWidthRule lockNodeDimensions setNodeSizeDirect setNodeHeightDirect
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('setNodeWidthDirect.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork (cw, 'force-directed')
# lockNodeDimensions (cw, 'default', FALSE) # --> not required anymore.
# setNodeWidthDirect does this for you.
setNodeWidthDirect (cw, 'A', 32)
setNodeWidthDirect (cw, getAllNodes(cw), 15)
setNodeWidthDirect (cw, c('A', 'B'), c(30, 40))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.