YinLiLin / CMplot

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

Rectangular manhattan plot - color the signal with 2 different significance lines #129

Open dianacornejo opened 1 month ago

dianacornejo commented 1 month ago

Hello, I wonder if its possible to color the signals above the 2 significance lines in the same way. What I'm seeing is for example those below 3x10-7 they are being color correctly and those below 2.5x10-6 are shown in gray. It is possible to change this behaviour for all off them without caring if they are below -6 or -7 to have the same colors??? This is an example of my manhattan plot. Thank you

Screenshot 2024-08-01 at 3 35 16 PM
YinLiLin commented 1 month ago

You may try to use highlight function.

EasperOne commented 1 month ago

Agreed, just collect the SNPs above the lower line into a factor. I think the alternate color setting here was demonstrated in the README.