Question: CM manhattan plot in R without default title
1
gravatar for dp0b
16 months ago by
dp0b50
dp0b50 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 • 945 views
ADD COMMENTlink modified 16 months ago by Bastien Hervé4.5k • written 16 months ago by dp0b50
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 16 months ago • written 16 months ago by Bastien Hervé4.5k

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

ADD REPLYlink written 16 months ago by dp0b50

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 16 months ago • written 16 months ago by Bastien Hervé4.5k

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

ADD REPLYlink written 16 months ago by Bastien Hervé4.5k
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: 1676 users visited in the last hour