YinLiLin / CMplot

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

How to adjust the colour when SNP density is 0 #34

Open MluNamjae opened 4 years ago

MluNamjae commented 4 years ago

Hello! I'm trying to use CMplot and R 3.6.2 to generate SNP density plots, and have noticed that the default colour when SNP density is 0 is light grey. My tutor feels this colour is not conspicuous or showy enough. Is there a way that I could specify and adjust this default colour? I've failed to find out an arguement to specify this in ?CMplot.

Thank you!

YinLiLin commented 4 years ago

Hi,

You are right, there is no related parameter to adjust the colour for a window without SNPs, I suggest to download the script of CMplot from GitHub, personally replace the default colour "grey95" with the colour you prefer (located at Line 424 and Line 510), then source the updated script in R to use it locally.

Best, LL

MluNamjae commented 4 years ago

Roger that! Thank you for your attention!