Circlize package ?
Hi all,
I have a clinical data specifying the karyotypes and mutations. I have a table consisting of different rows with repeated names and different columns. I want to plot the data by using Circlize Chord diagram where I want to show the relationship between the mutations and karyotypes specifying the number of patients in the chord. Ex:
Gene1 Gene2 Gene3 Gene4
MDS 1 1 0 1
MDS 0 0 0 0
MDS 1 0 1 1
MDS 0 0 0 0
Normal 0 0 1 0
Normal 1 0 0 0
Normal 0 0 1 0
I want to plot the data in the form of a chord diagram. Could anyone please help me deriving the matrix and code. The chords should specify the number of each patient.
• 2,739 views
•
link
0 answers
No answers yet.
Log in to answer this question.
What have you tried so far? Can you post your current code? Circliza has a really good tutorial: http://zuguang.de/circlize_book/book/
Thanks for the response. I have tried the https://zuguang.de/circlize_book/book/advanced-usage-of-chorddiagram.html#multiple-group-chord-diagram chord diagram function() but unable to set the matrix to get appropriate chord diagram.
Maybe relevant: shinyCircos: an R/shiny application for creation of Circos plot interactively