jokergoo / circlize

Circular visualization in R
http://jokergoo.github.io/circlize_book/book/
Other
968 stars 146 forks source link

chordDiagram: Color gradients between groups #313

Closed LeclercqNico closed 2 years ago

LeclercqNico commented 2 years ago

I wonder if there is a possibility to color the links between the different groups with a smooth color gradient of the two groups using the 'chorDiagram function. We set the colors of the groups with the 'grid.col' argument and the colors of the links with the 'col' argument.

I've seen that this is doable in other programs than R but I wonder if anyone could help do that in R. Here is an example of what I am trying to obtain. image

jokergoo commented 2 years ago

Unfortunately no.

What additional information does this color gradient provide from the plot?

LeclercqNico commented 2 years ago

Thank you for your response. Here, my issue is not to add information using the colors but making it clearer for the readers. My data is the pairwise beta-diversities between regions. Having such gradient would allow to directly see which two regions share the beta-diversity value, in my opinion, in a better way than the directional option in the function. I will deal with this in Illustrator. Thanks.

jokergoo commented 2 years ago

OK, I will put it into my to-do list.

LeclercqNico commented 2 years ago

Thank you very much! I am sure it would be useful to many.