YinLiLin / CMplot

📊 Circular and Rectangular Manhattan Plot
502 stars 111 forks source link

multitrait annotation #40

Open rb643 opened 3 years ago

rb643 commented 3 years ago

Is it possible to add annotation to a multitraits plot? I get the annotations of significant genes in the multi-tracks, but is there a way to also include them in a single figure (and maybe even have the text color of the annotation match the color of the trait)?

This is my current code for 3 traits: SNPs <- list( all$SNP[all$T1<1e-6], all$SNP[all$T2<1e-6], all$SNP[all$T3<1e-6] )

CMplot(all, plot.type="m",multracks=TRUE,threshold=c(1e-6,1e-4),threshold.lty=c(1,2), threshold.lwd=c(1,1), threshold.col=c("black","grey"), amplify=TRUE,bin.size=1e6, chr.den.col=c("darkgreen", "yellow", "red"), signal.col=NULL, highlight.col=NULL, signal.cex=1, file="jpg",memo="",dpi=300,file.output=TRUE,verbose=TRUE, highlight=SNPs, highlight.text=SNPs, highlight.text.cex=1.4)

YinLiLin commented 3 years ago

Thanks for your feedback. Sorry that the highlight function is now not available for multi-traits plot, I will try to achieve it in the next version.

yeeus commented 2 weeks ago

Hi! Dose this issue be solved?

YinLiLin commented 2 weeks ago

@yeeus Sorry that it has not been achieved yet in current version of CMplot.