Open Garen2994 opened 4 years ago
Hi, Thanks for using CMplot, would you mind attaching a image here please? as I am not sure which type of plot you mentioned. Best, Lilin
Hi,Lilin
Sorry for my unclear expression.I mean I want to change the unit MB of x-axis to kb in this SNP-density plot (Sorry for my data is secret),because the density of this dataset is low. I read the manual and your source code, but I still can't find a parameter to override ,which can change the Mb of x-axis to Kb. Is that able to change? Would you mind give me some pointers please? Thanks for your reply!
Best regards
garen hou
Hi garen,
I have updated CMplot on GitHub, the unit of x-axis will be changed automatically depending on the max value of the chromosome position, that means if the max length of all chromosomes is less than 1Mb, CMplot will turn into Kb unit, but in this case, you should pay attention to assign a appropriate bin.size
, for example 1e3 rather then 1e6.
please source (see the manual) the online script of CMplot instead of library(CMplot)
, then have a try to see if it meets your requirements, please let me know if there is still a problem with your case.
Best, Lilin
Thank u lin.I have already solved this problem! Thank u for designedly tweaking your code. Best wishes to you. garen
Hello! I want to change current default unit (Mb) to Kb, but I don't know which parameter I should change?Hope your reply~Thanks!