Home > Blockchain >  In directional Circos plot with circlize, how to widen the end of ribbon?
In directional Circos plot with circlize, how to widen the end of ribbon?

Time:12-13

I am trying to widen the end of ribbon. Is it possible?

library(circlize)
mat2 = matrix(sample(100, 35), nrow = 5)
rownames(mat2) = letters[1:5]
colnames(mat2) = letters[1:7]
chordDiagram(mat2, grid.col = 1:7, directional = 1, row.col = 1:5)

Thanks

enter image description here

CodePudding user response:

You can use the target.prop.height argument:

chordDiagram(mat2, grid.col = 1:7, directional = 1, row.col = 1:5,
             target.prop.height = mm_h(1))

enter image description here

chordDiagram(mat2, grid.col = 1:7, directional = 1, row.col = 1:5,
             target.prop.height = mm_h(3))

enter image description here

  • Related