CMplot icon indicating copy to clipboard operation
CMplot copied to clipboard

How can I exponentially scale the Y axis

Open Conxz opened this issue 4 years ago • 4 comments

Thanks for the great package! Are there any tricks to exponentially scale the Y axis of Manhaton plot? I have some points with real high y values. With the default settings, points with relatively low y values can hardly seen in the plot. Thanks.

Conxz avatar May 13 '20 22:05 Conxz

Thanks for your question. There is no related parameter in CMplot to change the transformation scale for p-values, only one option "LOG10" is available. But I suggest to transform your p-values at the scale you want prior to plotting, then use the transformed outcome to run CMplot with setting LOG10=FALSE, and simultaneously change the labels of y-axis by parameter ylab.

YinLiLin avatar May 14 '20 05:05 YinLiLin

Thanks so much for your quick reply! This should work for the plot. Do you have a parameter for customizing axis ticks labels? Thanks.

Conxz avatar May 14 '20 10:05 Conxz

X-axis ticks can be changed by parameter "chr.lables", and the y-axis ticks are generated from R, so I don't include additional parameter in current version. Thanks.

YinLiLin avatar May 14 '20 10:05 YinLiLin

Thanks.

Conxz avatar May 14 '20 11:05 Conxz