YinLiLin / CMplot

📊 Circular and Rectangular Manhattan Plot
499 stars 111 forks source link

How to exclude or move location of trait name in multitrack Manhattan #80

Open squirrelB opened 1 year ago

squirrelB commented 1 year ago

Hi. Thank you for the excellent R package! Makes life so easy and very user friendly!

I had one question. When multracks=TRUE for plot.type="m", is there a way to move the trait name that shows up at the top right? Or exclude it altogether so I can add that later? As you can see, the label gets a little in the way of seeing the point.

Multracks-Manhattan Viewblocked Blue Black Lightgreen

YinLiLin commented 1 year ago

Sorry for the inconsiderate design, i am planning to add a new parameter to control the location of the trait name on the plot, and i will leave a message here once finished.

YinLiLin commented 1 year ago

Hi,

i have added two new parameters in CMplot function, the parameter "trait.legend.pos" can be used to control the location of trait name on the plot, three options "left", "middle", "right" are available; another new added parameter "trait.legend.cex" can be used to set the size of the text of trait name. Above upgrades have been submitted to GitHub, please source the online script and try again, and i also have submitted this version to CRAN, which will be released to public in the coming days. Thanks for your feedback.

Best, Lilin

squirrelB commented 1 year ago

Thank you so much! This is lovely.