Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

noverlap

No overlap


Description

This plugin runs an algorithm which distributes nodes in the network, ensuring that they do not overlap and providing a margin where specified.

Usage

sg_noverlap(sg, ...)

sg_noverlap_p(proxy, nodeMargin = 5, ...)

Arguments

sg

An object of class sigmajsas intatiated by sigmajs.

...

any option to pass to the plugin, see official documentation.

proxy

An object of class sigmajsProxy as returned by sigmajsProxy.

nodeMargin

The additional minimum space to apply around each and every node.

Value

The first argument either sg or proxy.

Examples

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()

sigmajs

Interface to 'Sigma.js' Graph Visualization Library

v0.1.5
MIT + file LICENSE
Authors
John Coene [aut, cre, cph] (<https://orcid.org/0000-0002-6637-4107>)
Initial release
2020-06-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.