setDefaultNodeShape,RCyjs-method {RCyjs} | R Documentation |
setDefaultNodeShape
change the shape of all nodes
## S4 method for signature 'RCyjs' setDefaultNodeShape( obj, newValue = c("ellipse", "triangle", "rectangle", "roundrectangle", "bottomroundrectangle", "cutrectangle", "barrel", "rhomboid", "diamond", "pentagon", "hexagon", "concavehexagon", "heptagon", "octagon", "star", "tag", "vee") )
obj |
an RCyjs instance |
newValue |
a character string, one of "ellipse", "triangle", "rectangle", "roundrectangle", "bottomroundrectangle","cutrectangle", "barrel", "rhomboid", "diamond", "pentagon", "hexagon", "concavehexagon", "heptagon", "octagon", "star", "tag", "vee" |
no value returned
if(interactive()){ g <- simpleDemoGraph() rcy <- RCyjs(title="setDefaultNodeShape", graph=g) layout(rcy, "cose") setDefaultNodeShape(rcy, "barrel") }