Description Usage Arguments Value Examples
This plugin runs an algorithm which distributes nodes in the network, ensuring that they do not overlap and providing a margin where specified.
1 2 3 | sg_noverlap(sg, ...)
sg_noverlap_p(proxy, nodeMargin = 5, ...)
|
sg |
An object of class |
... |
any option to pass to the plugin, see official documentation. |
proxy |
An object of class |
nodeMargin |
The additional minimum space to apply around each and every node. |
The first argument either sg
or proxy
.
1 2 3 4 5 6 7 8 | nodes <- sg_make_nodes(500)
edges <- sg_make_edges(nodes)
sigmajs() %>%
sg_nodes(nodes, id, size, color) %>%
sg_edges(edges, id, source, target) %>%
sg_layout() %>%
sg_noverlap()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.