# NOT RUN {
set.seed(123)
mat1 = matrix(sample(20, 25, replace = TRUE), 5)
mat2 = mat1 / 2
gap = calc_gap(mat1, mat2, big.gap = 10, small.gap = 1)
chordDiagram(mat2, directional = 1, grid.col = rep(1:5, 2), transparency = 0.5,
big.gap = gap, small.gap = 1)
# }
Run the code above in your browser using DataLab