Description Usage Arguments Details Value Examples
setNodeAttributes
put somewhat more detailed description here
1 2 | ## S4 method for signature 'RCyjs'
setNodeAttributes(obj, attribute, nodes, values)
|
obj |
an RCyjs instance |
attribute |
a character string |
nodes |
character strings - node ids |
values |
scalar values, all of one type (all numeric, or all character, or all integer, ...) |
multi-line description goes here with continuations on subsequent lines if you like
explain what the method returns
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)
setNodeAttributes(rcy, "lfc", c("A", "B", "C"), c(0, 0, 0))
redraw(rcy)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.