How do I generate a Manhattan plot like this?
0
0
Entering edit mode
5 days ago

Hi all,

I'm trying to generate a Manhattan plot similar to this one I found online: https://plottie.art/plots/5372

It looks cleaner than the default ones I’ve seen — especially in terms of layout, significance threshold lines, and how the top SNPs are annotated.

I’m wondering:

  1. What R or Python packages can produce plots like this?

  2. Any tips on customizing axis ticks, colors by chromosome, or labeling top hits?

Would appreciate any guidance or example code. Thanks!

data-visualization manhattan-plot • 339 views
ADD COMMENT
1
Entering edit mode

R-Graph-Gallery offers examples in R for both base and with the library ggplot2 for a lot of the more common graph types used in science. Including for Manhattan Plots.

ADD REPLY
0
Entering edit mode

Thanks, that's a good resource.

ADD REPLY
0
Entering edit mode

That could easily be done with ggplot2. Essentially, it comes down to

x = chr
y = -log10(p)
color = locus_type
label = these_numbers

...and then use a combination of geom_point and ggrepel::geom_label_repel to assemble the plot. Without example data, cannot make an example though.

ADD REPLY

Login before adding your answer.

Traffic: 2742 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6