setNodeSizeRule,RCyjs-method {RCyjs} | R Documentation |
setNodeSizeRule
control node size via values of the specified attribute
## S4 method for signature 'RCyjs' setNodeSizeRule(obj, attribute, control.points, node.sizes)
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 |
actual node sizes are interpolated via the specified relationship of control.points node.sizes
no return value
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) }