totajuliusd / topr

topr is a collection of plotting functions for visualizing and exploring genetic association results. Association results from multiple phenotypes can be viewed simultaneously, over the entire genome (Manhattan plot) or in the more detailed regional view.
Other
49 stars 13 forks source link

Colour configuration in qqtopr #35

Closed ejade42 closed 9 months ago

ejade42 commented 9 months ago

Hi, I love this package! By far the best GWAS visualisation package I've found. In most respects it's extremely customisable, which is excellent.

However, one thing that I have not been able to customise is the colour of the y = x line in qqtopr. I looked at the code and it seems to be hardcoded to "#808080" (line 63 of qqtopr.R). Is there any way this could be made customisable as an argument to the qqtopr function?

Thank you!

totajuliusd commented 9 months ago

Hi and thank you!

And yes, no problem, I can add that as an argument in the next release. Im currently working on the next version which I aim to release before February! I will keep you posted.

totajuliusd commented 9 months ago

topr v.2.0.0 has been released and you can change the color of the diagonal line on the qqplot with the diagonal_line_color argument, like so:

qqtopr(CD_UKBB, diagonal_line_color = "red")