Description Usage Arguments Value Examples
fit
zoom in (or out) to display all nodes in the current graph
1 2 | ## S4 method for signature 'RCyjs'
fit(obj, padding = 30)
|
obj |
an RCyjs instance |
padding |
numeric, in pixels |
no return value
1 2 3 4 5 | if(interactive()){
rcy <- RCyjs(title="rcyjs demo", graph=simpleDemoGraph())
setZoom(rcy, 0.5) # zoom out
fit(rcy)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.