Description Usage Arguments Details Value Examples
setNodeSizeRule
control node size via values of the specified attribute
1 2 | ## 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
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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.