CMplot icon indicating copy to clipboard operation
CMplot copied to clipboard

Move the group legend

Open sureman opened this issue 6 years ago • 9 comments

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.

sureman avatar Apr 24 '19 16:04 sureman

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

YinLiLin avatar Apr 25 '19 02:04 YinLiLin

Hi Lilin. Thank you for the quick response. Please see the example below. Multraits Rectangular-Manhattan

sureman avatar Apr 25 '19 15:04 sureman

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. Multraits Rectangular-Manhattan

sureman avatar Apr 25 '19 20:04 sureman

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

YinLiLin avatar Apr 26 '19 00:04 YinLiLin

Hi Lilin,

Thank you so much for providing such a great plotting tool. I have similar question as mentioned above.

  1. 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.

  2. I do not know how to change the font size of the axis.

Multraits Rectangular-Manhattan log_rank_score_amyloid log_rank_score_braak log_rank_score_cerad log_rank_score_ceradaf log_rank_score_cogdec log_rank_score_gpath log_rank_score_tangles

YantingHuang avatar May 18 '19 02:05 YantingHuang

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

YinLiLin avatar May 18 '19 02:05 YinLiLin

Hi Lilin,

Thanks for the help! Really enjoy the package you provided for us.

YantingHuang avatar May 18 '19 03:05 YantingHuang