How to improve legend of circular manhatton
1
0
Entering edit mode
5.2 years ago
Kumar ▴ 170

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.0k views
ADD COMMENT
0
Entering edit mode
ADD REPLY
0
Entering edit mode
5.2 years ago
zx8754 12k

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", ...)
ADD COMMENT
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

Ask a new question.

ADD REPLY

Login before adding your answer.

Traffic: 1322 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6