Skip to content
Plotly templates

Manhattan Plot (GWAS)

Genome-wide association — chromosome position vs −log10 p-value with significance line.

Template previewPlotly
Rendering…

Make it your own.

{
  "data":[
    {"type":"scatter","mode":"markers","name":"chr1",
      "x":[0.1,0.4,0.7,1.0,1.3,1.6,1.9],
      "y":[1.2,2.3,3.5,8.5,2.1,1.8,2.0],
      "marker":{"color":"#1f47f5","size":6}},
    {"type":"scatter","mode":"markers","name":"chr2",
      "x":[2.2,2.5,2.9,3.2,3.5,3.8],
      "y":[1.4,1.8,5.6,9.1,2.3,1.5],
      "marker":{"color":"#7c3aed","size":6}},
    {"type":"scatter","mode":"markers","name":"chr3",
      "x":[4.0,4.3,4.7,5.0,5.3],
      "y":[1.0,2.1,3.0,1.8,1.3],
      "marker":{"color":"#16a34a","size":6}},
    {"type":"scatter","mode":"markers","name":"chr4",
      "x":[5.5,5.8,6.1,6.4],
      "y":[2.4,7.8,10.2,1.6],
      "marker":{"color":"#dc2626","size":6}}
  ],
  "layout":{
    "title":"Manhattan plot",
    "xaxis":{"title":"Chromosome position"},
    "yaxis":{"title":"−log₁₀ p-value"},
    "shapes":[{"type":"line","x0":0,"x1":7,"y0":7.3,"y1":7.3,"line":{"color":"#dc2626","dash":"dash"}}],
    "annotations":[{"x":7,"y":7.3,"text":"genome-wide significance (5e-8)","showarrow":false,"xanchor":"right","yanchor":"bottom","font":{"color":"#dc2626"}}]
  }
}