How to set borders of linkers in chord diagram darker compared to inner transparent fill in R

38 Views Asked by At

I want to create the border for the linkers of the chord diagram darker compared to the inner fill An example of data similar to the one I am working on is

set.seed(999)
mat = matrix(sample(18, 18), 3, 6) 
rownames(mat) = paste0("S", 1:3)
colnames(mat) = paste0("E", 1:6)
mat
df = data.frame(from = rep(rownames(mat), times = ncol(mat)),
    to = rep(colnames(mat), each = nrow(mat)),
    value = as.vector(mat),
    stringsAsFactors = FALSE)

the code i am using is

par(mfrow = c(1, 2))
chordDiagram(mat, order = c("S2", "S1", "S3", "E4", "E1", "E5", "E2", "E6", "E3"))
0

There are 0 best solutions below