Description Usage Arguments Value Examples
setDefaultNodeShape
change the shape of all nodes
1 2 3 4 5 6 7 | ## 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
1 2 3 4 5 6 | if(interactive()){
g <- simpleDemoGraph()
rcy <- RCyjs(title="setDefaultNodeShape", graph=g)
layout(rcy, "cose")
setDefaultNodeShape(rcy, "barrel")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.