CMplot icon indicating copy to clipboard operation
CMplot copied to clipboard

How to adjust the colour when SNP density is 0

Open MluNamjae opened this issue 5 years ago • 2 comments

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!

MluNamjae avatar Jul 14 '20 10:07 MluNamjae

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

YinLiLin avatar Jul 14 '20 11:07 YinLiLin

Roger that! Thank you for your attention!

MluNamjae avatar Jul 18 '20 05:07 MluNamjae