View source: R/bundle_hammer.R
edge_bundle_hammer | R Documentation |
Implements the hammer edge bundling by Ian Calvert.
edge_bundle_hammer(object, xy, bw = 0.05, decay = 0.7)
object |
a graph object (igraph/network/tbl_graph) |
xy |
coordinates of vertices |
bw |
bandwidth parameter |
decay |
decay parameter |
This function only wraps existing python code from the datashader library. Original code can be found at https://gitlab.com/ianjcalvert/edgehammer. Datashader is a huge library with a lot of dependencies, so think twice if you want to install it just for edge bundling. Check https://datashader.org/user_guide/Networks.html for help concerning parameters bw and decay. To install all dependencies, use install_bundle_py.
see online for plotting tips
data.frame containing the bundled edges
David Schoch
edge_bundle_force,edge_bundle_stub, edge_bundle_path
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.