YinLiLin / CMplot

📊 Circular and Rectangular Manhattan Plot
511 stars 112 forks source link

How to remove the y-axis or add my own y-scale #11

Open Yung-Chien opened 4 years ago

Yung-Chien commented 4 years ago

Hi @YinLiLin , I would like to draw a Manhattan Plot to illustrate the distribution of Fst for each chromosome, so the range of y-axis should be set from 0 to 1. when I set the ylim as (0,1), I got this : 2019-09-05_141514

However, I wanted to add some scales in this axis, so I added some codes behind the plotting code as below :

And I got this

2019-09-05_141931

How can I fix this issue, thanks in advance.

Best Regards,

Yong Jian

Yung-Chien commented 4 years ago

Hi @YinLiLin , I would like to draw a Manhattan Plot to illustrate the distribution of Fst for each chromosome, so the range of y-axis should be set from 0 to 1. when I set the ylim as (0,1), I got this : 2019-09-05_141514

However, I wanted to add some scales in this axis, so I added some codes behind the plotting code as below :

  • axis(2,at=seq(0,1,0.2))

And I got this

2019-09-05_141931

How can I fix this issue, thanks in advance.

Best Regards,

Yong Jian

Yung-Chien commented 4 years ago

Sorry I've closed this issue accidientlly.

YinLiLin commented 4 years ago

Hi Yong Jian,

It seems that you used the previous version of CMplot, 3.3.3? I have updated CMplot to 3.4.0, and is on its way to CRAN. But you could directly source the online codes to use the latest version, please try source("https://raw.githubusercontent.com/YinLiLin/R-CMplot/master/R/CMplot.r") in your R console and plot again to see if it has beed fixed. Also please refer to the new online user manual, some novel functions have beed enriched in CMplot. Cheers, Lilin

Yung-Chien commented 4 years ago

Hi Yong Jian,

It seems that you used the previous version of CMplot, 3.3.3? I have updated CMplot to 3.4.0, and is on its way to CRAN. But you could directly source the online codes to use the latest version, please try source("https://raw.githubusercontent.com/YinLiLin/R-CMplot/master/R/CMplot.r") in your R console and plot again to see if it has beed fixed. Also please refer to the new online user manual, some novel functions have beed enriched in CMplot. Cheers, Lilin

Hi @YinLiLin ,

Wow, the 3.4.0 CMPlot solved my problem perfectly, here is my result: 2019-09-05_143643

I hope I could download the version 3.4.0 in CRAN soon, but I still appreciate that you developed this package.

Cheers,

Yong Jian