setDefaultNodeShape: setDefaultNodeShape

Description Usage Arguments Value Examples

Description

setDefaultNodeShape change the shape of all nodes

Usage

1
2
3
4
5
## 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"))

Arguments

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"

Value

no value returned

Examples

1
2
3
4
5
6
if(interactive()){
  g <- simpleDemoGraph()
  rcy <- RCyjs(title="setDefaultNodeShape", graph=g)
  layout(rcy, "cose")
  setDefaultNodeShape(rcy, "barrel")
  }

paul-shannon/RCyjs documentation built on May 28, 2019, 1:15 p.m.