setNodeSizeRule,RCyjs-method {RCyjs} | R Documentation

## setNodeSizeRule

### Description

`setNodeSizeRule` control node size via values of the specified attribute

### Usage

    ## S4 method for signature 'RCyjs'
    setNodeSizeRule(obj, attribute, control.points, node.sizes)

### Arguments

`obj` | an RCyjs instance
`attribute` | a character string, the node attribute category whose value controls size
`control.points` | a list of values of the attribute
`node.sizes` | the corresponding node size, one specified for each of the control.points

### Details

actual node sizes are interpolated via the specified relationship of control.points node.sizes

### Value

no return value

### Examples

    if(interactive()){
       g <- simpleDemoGraph()
       rcy <- RCyjs(title="rcyjs demo", graph=g)
       layout(rcy, "cose")
       fit(rcy, 100)
       setNodeSizeRule(rcy, "count", c(0, 30, 110), c(20, 50, 100));
       redraw(rcy)
       }

[Package RCyjs version 2.10.0 Index]