setNodeSizeRule: setNodeSizeRule

Description Usage Arguments Details Value Examples

Description

setNodeSizeRule control node size via values of the specified attribute

Usage

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

1
2
3
4
5
6
7
8
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)
   }

RCyjs documentation built on Nov. 8, 2020, 8:20 p.m.