This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to improve legend of circular manhatton

I need to improve my circular manhattan plot. Please see plot at following link, where I need to change names of circular legend such as bio34, bio78 and so on rather than Chr1..Chr14. Here, is my code that I am using for this plot, please suggest improvement in the code..

CMplot(manhat,plot.type="c",r=0.4,col=c("grey30","grey60"),chr.labels=paste("Chr", c(1:14,"X"),sep=""), LOG10=TRUE,
cir.chr.h=1.5,amplify=TRUE,threshold.lty=c(1,2),threshold.col=c("red",
"blue"),signal.line=1,signal.col=c("red","green"),chr.den.col=c("darkgreen","yellow","red"),
bin.size=1e6,outward=FALSE,file="jpg",memo="",dpi=600,file.output=TRUE,verbose=TRUE,width=10,height=10)

https://ibb.co/s2VMHcs

r

1 answer

Just a guess, I think you need to change this:

chr.labels = paste("Chr", c(1:14, "X"), sep = "")

to:

chr.labels = c("bio34", "bio78", ...)

Thanks, moving forward, how to put scale log10 for p-value in the code.

Also, I need legends inner side of the circle rather than out side...

Log in to answer this question.