Miami Plots: Comparing Two GWAS on a Shared Genomic Axis
A Manhattan plot answers one question beautifully: across the genome, where are the association signals in this study? But a great deal of genetics is comparative. Does this signal replicate in the second cohort? Which loci are shared between a discovery and a validation scan, and which are unique to one? How do two related traits line up, locus by locus? For those questions you want two Manhattan plots mirrored against a single genomic axis — the view the community calls a Miami plot.
CanvasXpress now ships it, as scatterType:"miami".
What a Miami plot shows
A Miami plot stacks two Manhattan tracks on one shared genomic x-axis. The top study's association signals rise upward; the bottom study's fall downward, mirrored across a central line. The chromosome labels run along that central mirror line, and each track has its own y-axis — both zeroed at the center, both reading in positive -log10(p) even though the bottom one points down, with a small gap separating the two halves so they read cleanly apart.
The result is that the same genomic position in both studies sits on the same vertical line. A locus that is significant in both scans shows a peak above and a peak below at exactly the same x. A locus unique to one study shows a peak on only one side. Replication, divergence, and shared architecture are all legible at a glance — which is the entire reason the plot exists.
Each track gets its own chromosome-banding palette, so the two studies are visually distinct and you never confuse an upper peak for a lower one.
How to build one
A Miami plot is a Scatter2D chart with a genomic scatter type. You supply one data matrix with a chromosome column, a position column, and two p-value columns — one per study:
{
"graphType": "Scatter2D",
"scatterType": "miami",
"manhattanMarkerChromosomeNumber": "chr",
"manhattanMarkerPosition": "pos",
"manhattanMarkerLogPValue": "pvalue_discovery",
"manhattanMarkerLogPValueBottom": "pvalue_replication",
"manhattanColorsBottom": ["rgb(90,90,90)", "rgb(70,130,180)"]
}
manhattanMarkerLogPValueis the top (upward) study, exactly as in an ordinary Manhattan plot.manhattanMarkerLogPValueBottomis the new bottom (downward) study.manhattanColorsBottomsets the alternating-chromosome palette for the bottom track; its defaults are deliberately distinct from the top track's so the two studies read apart.
Both tracks share one cumulative genomic x-axis built from the chromosome and position columns, so every marker in both studies is placed on the same coordinate line. The y-axis is made symmetric automatically — the larger of the two studies' peak heights sets the extent, and both halves are labelled with positive -log10(p) values.
Because a Miami plot is a scatter type rather than a new chart type, everything that already works on a CanvasXpress Manhattan plot — chromosome banding, point coloring, the genomic axis layout — carries straight over, and the two-study view is a single setting rather than a separate codebase.
A dedicated gallery home
Manhattan and Miami plots now have their own gallery page — "Manhattan & Miami Plots" — grouped with the genomics and clinical charts alongside the genome browser, oncoprint, and survival views. Both the single-study Manhattan and the two-study Miami live there with worked examples, so the pattern is easy to find and easy to adapt.
Why it matters for your analysis
Replication is the backbone of credible association work, and a Miami plot is the most direct way to show it. Put your discovery scan on top and your replication scan on the bottom, and a reviewer can see in one figure which signals held up and which did not — no table cross-referencing, no mental alignment of two separate Manhattan plots. The same view serves cross-trait comparisons, cross-ancestry comparisons, and before-and-after conditioning analyses: anywhere two genome-wide scans need to be read position-by-position.
And since it is an ordinary CanvasXpress chart, it is interactive in the browser — hover a peak to read the marker, zoom into a region, recolor — and it exports to SVG and PDF at vector quality for the manuscript. Two scans, one axis, one figure, position by position.