MAIDR Documentation - v4.4.0
    Preparing search index...
    • Binds a D3.js volcano plot to MAIDR.

      A volcano plots effect size against significance, and is read exactly as a Manhattan plot is: which points clear the line, and what they are called. The difference is that it has two lines — a gene matters when its change is both large and significant — so effect joins significance.

      Supply label. On a volcano the gene name is the payload: a reader told "x is 2.3, y is 14.1" has been given the two numbers whose shape they can already hear, and withheld the one thing they came for. The binder warns when no label resolves rather than failing, since the chart still reads without it.

      Parameters

      • svg: Element

        The SVG element containing the D3 volcano plot.

      • config: D3VolcanoConfig

        Configuration specifying the selector, accessors and cutoffs.

      Returns D3BinderResult

      A D3BinderResult with the MAIDR data and generated layer.

      bindD3Volcano(svgElement, {
      selector: 'circle.gene',
      title: 'Differential Expression',
      axes: { x: 'log2 fold change', y: '-log10(p)' },
      x: 'lfc',
      y: 'logP',
      label: 'gene',
      significance: 1.3,
      effect: 1,
      });