setDefaultNodeShape,RCyjs-method {RCyjs} | R Documentation

## setDefaultNodeShape

### Description

`setDefaultNodeShape` change the shape of all nodes

### Usage

    ## 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

    if(interactive()){
      g <- simpleDemoGraph()
      rcy <- RCyjs(title="setDefaultNodeShape", graph=g)
      layout(rcy, "cose")
      setDefaultNodeShape(rcy, "barrel")
      }

[Package RCyjs version 2.14.0 Index]