Description Usage Arguments Value Author(s) See Also Examples
Cytoscape provides a number of canned visual styles. You can also create your own. Use this method to establish an (already-defined) visual style as the style which governs the display of a network in the specified CytoscapeWindow object.
1 | setVisualStyle(obj, new.style.name)
|
obj |
a |
new.style.name |
a |
Nothing.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
getVisualStyleNames copyVisualStyle
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
window.name <- 'demo.setVisualStyle'
cw <- CytoscapeWindow (window.name, graph=makeSimpleGraph ())
displayGraph (cw)
layoutNetwork(cw)
styles <- getVisualStyleNames (cw)
setVisualStyle (cw, styles[5])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.