A Manhattan plot is a scatter of -log10(p) against genomic position, drawn
with tens of thousands of points of which a few dozen matter. The question a
reader asks it is never "what is at this coordinate" — it is "which points
cross the line, and what are they called", so the two accessors that answer
that (label, group) and the significance cutoff are what this binder
adds to bindD3Scatter.
All three are optional, and the chart still reads without them: the trace
simply reports no findings when no cutoff was declared, rather than guessing
one. It is worth supplying them — the cutoff is the whole reason the chart
was drawn, and it is written nowhere a screen reader can reach.
Binds a D3.js Manhattan plot to MAIDR.
A Manhattan plot is a scatter of
-log10(p)against genomic position, drawn with tens of thousands of points of which a few dozen matter. The question a reader asks it is never "what is at this coordinate" — it is "which points cross the line, and what are they called", so the two accessors that answer that (label,group) and thesignificancecutoff are what this binder adds to bindD3Scatter.All three are optional, and the chart still reads without them: the trace simply reports no findings when no cutoff was declared, rather than guessing one. It is worth supplying them — the cutoff is the whole reason the chart was drawn, and it is written nowhere a screen reader can reach.