Question: CM manhattan plot in R without default title
0
gravatar for dp0b
8 weeks ago by
dp0b30
dp0b30 wrote:

Hi,

I want to plot a multi track manhattan and was using cmplot. However, I wish the final plot not to have the title manhattan plot at the top. Does any one no how I can edit it from the default? I have tried title=null, title= ' ', and changing the parameters par(mar=c(5,3,2,2)+0.1) Any suggestions would be much appreciated

library("CMplot")
data(pig60K)
CMplot(pig60K,plot.type="m",band=1,LOG10=TRUE,multracks=TRUE)

Many thanks.

manhattan R cmplot • 240 views
ADD COMMENTlink modified 8 weeks ago by Bastien Hervé2.3k • written 8 weeks ago by dp0b30
2

You can either cover the title with a wonderful white rectangle using gimp or paint. Or modify the source code of CMplot, around line 870 and 1200 of CMplot.r you have plot creations with titles. Have fun !

ADD REPLYlink modified 8 weeks ago • written 8 weeks ago by Bastien Hervé2.3k

Thanks for your help! At least I know it requires a bit more than I thought I was missing!

ADD REPLYlink written 8 weeks ago by dp0b30

If you're on linux and you want to rebuild the CMplot package to modify these lines, the first answer works well :

https://stackoverflow.com/questions/34800331/r-modify-and-rebuild-package

ADD REPLYlink modified 8 weeks ago • written 8 weeks ago by Bastien Hervé2.3k

Btw already asked on github issues : https://github.com/YinLiLin/R-CMplot/issues/4

ADD REPLYlink written 8 weeks ago by Bastien Hervé2.3k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1863 users visited in the last hour