Move the group legend
Thank you for the great tool. I apologize if I missed it, but can the location of the legend be changed? My SNPs of interest fall in the same location as the legend. Thanks.
hi,
I am not clear what type of Manhattan plot you point, could you please attach the figure here, I am happy to debug the code with you problem. thanks.
Lilin
Hi Lilin. Thank you for the quick response. Please see the example below.

I sourced the latest code and it seems that the legend is repositioned in a good location for me thanks. Is there a way to add a title, change the phenotype colors, and remove the density? Thanks again for the great tool.

hi Thanks for using CMplot, also your feedbacks. I have discarded the function of modifying the title in the new version of CMplot following some users' suggestions, I am sorry about that. For change the colours, you can add a parameter 'col=c(your prefer color vector)' in CMplot. For remove the density, you should set 'chr.den.col=NULL' in CMplot Best, Lilin
Hi Lilin,
Thank you so much for providing such a great plotting tool. I have similar question as mentioned above.
-
I do not know how to move the legend. I used install.packages("CMplot") and it seems that it does not affect the recent change mentioned above.
-
I do not know how to change the font size of the axis.

Hi yanting,
Thanks for using CMplot. I haven’t gotten a chance to update CMplot on CRAN. But the codes on github are the latest. So you need to source it instead of “library(CMplot)”. Please see the link on the README of CMplot. There are two parameters to control the size of labels: “cex.labs” and “cex.axis”. One is for the title of axis, another is for the number of axis.
Best,
Lilin
Hi Lilin,
Thanks for the help! Really enjoy the package you provided for us.