YinLiLin / CMplot

📊 Circular and Rectangular Manhattan Plot
511 stars 112 forks source link

circle legend #18

Open mverocai opened 4 years ago

mverocai commented 4 years ago

Hello Lilin, I recently started to use CMplot. It's a great package I'm trying to make a circular manhattan plot. I can't add legend name (traits) for each circle. If I write cir.legend=TRUE nothing happens My entire code is:

`colnames(cmplot3)` <- c("SNP name", "Chr", "Position", "Z49_17A", "Z49_17B", "Z49_17C")
CMplot(cmplot3, plot.type = "c",col=c("grey30","grey60"), dpi = 300, 
       threshold=c(1e-3), cir.legend = T,chr.den.col=c("darkgreen","yellow","red"), 
       signal.col=c("red"), cir.legend= ,chr.labels=paste("Chr",c(1:7)))

best,

Maximiliano

YinLiLin commented 4 years ago

Hi Maximiliano,

Thank you for using CMplot. I am sorry that it's not available to add legend names for traits in CMplot, I suggest to write some text notes under the figure.

regards, Lilin