How to add labels and indicate significant correlations in the chord plot?

33 Views Asked by At

I have corr_mat where I have stored the correlation between microbiota and metabolite data. In pmat, I have stored the pvalues from the correlations. I have used the following R plot to create the chord diagram. But I am not sure how to

  • firstly filter out and store the significant correlations from pmat
  • indicate the significant positive and negative correlations in blue and red color in the chord diagram
  • add the labels in the chord diagram

enter image description here

library(ggcorrplot)

ggcorrplot(corr_mat)

chordDiagram(
x = corr_mat,
annotationTrack = "grid",
preAllocateTracks = 1)
0

There are 0 best solutions below