edge_bundle_path | R Documentation |
Implements edge-path bundling.
edge_bundle_path(
g,
xy,
max_distortion = 2,
weight_fac = 2,
segments = 20,
bundle_strength = 1,
mode = "out"
)
g |
an igraph object |
xy |
coordinates of vertices |
max_distortion |
maximum distortion |
weight_fac |
edge weight factor |
segments |
number of subdivisions of edges |
bundle_strength |
bundle strength factor |
mode |
the parameter fo shortest_paths |
This is a re-implementation of https://github.com/mwallinger-tu/edge-path-bundling
see online for plotting tips
data.frame containing the bundled edges
David Schoch
Wallinger, M., Archambault, D., Auber, D., Nollenburg, M., & Peltonen, J. (2021). Edge-Path Bundling: A Less Ambiguous Edge Bundling Approach. IEEE Transactions on Visualization and Computer Graphics.
edge_bundle_hammer,edge_bundle_stub,edge_bundle_force
library(igraph)
g <- graph_from_edgelist(matrix(c(
1, 2, 1, 6,
1, 4, 2, 3, 3, 4, 4, 5, 5, 6
), ncol = 2, byrow = TRUE), FALSE)
xy <- cbind(c(0, 10, 25, 40, 50, 50), c(0, 15, 25, 15, 0, -10))
edge_bundle_path(g, xy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.