edge_bundle_path {edgebundle}R Documentation

Edge-Path Bundling

Description

Implements edge-path bundling.

Usage

edge_bundle_path(g, xy, max_distortion = 2, weight_fac = 2, segments = 20)

Arguments

g

an igraph object

xy

coordinates of vertices

max_distortion

maximum distortion

weight_fac

edge weight factor

segments

number of subdivisions of edges

Details

This is a re-implementation of https://github.com/mwallinger-tu/edge-path-bundling

see online for plotting tips

Value

data.frame containing the bundled edges

Author(s)

David Schoch

References

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.

See Also

edge_bundle_hammer,edge_bundle_stub,edge_bundle_force

Examples

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)

[Package edgebundle version 0.4.2 Index]