CMplot icon indicating copy to clipboard operation
CMplot copied to clipboard

multitrait annotation

Open rb643 opened this issue 5 years ago • 5 comments

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)

rb643 avatar Nov 21 '20 15:11 rb643

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.

YinLiLin avatar Nov 28 '20 07:11 YinLiLin