setDefaultNodeShape | R Documentation |
For all CytoscapeWindow's, specify the default node shape.
setDefaultNodeShape(obj, new.shape, vizmap.style.name = "default")
obj |
a CytoscapeConnectionClass object. |
new.shape |
a String object, one of the permissible values
(see getNodeShapes). |
vizmap.style.name |
a String object. |
None.
Paul Shannon
getNodeShapes setDefaultNodeShape setDefaultNodeColor setDefaultNodeSize setDefaultNodeColor setDefaultNodeBorderColor setDefaultNodeBorderWidth setDefaultNodeFontSize setDefaultNodeLabelColor setDefaultEdgeLineWidth setEdgeColorRule setNodeBorderColorRule
cw <- new.CytoscapeWindow ('setDefaultNodeShape.test', graph=makeSimpleGraph()) displayGraph (cw) redraw (cw) layoutNetwork (cw, 'jgraph-spring') legal.shapes <- getNodeShapes (cw) # stopifnot ('diamond' %in% legal.shapes) setDefaultNodeShape (cw, 'diamond') redraw (cw)