Klar

Charts / React science and statistics charts / Statistics

Volcano plot

Fold change against significance for every gene, with FDR and fold-change thresholds, up and down counts and the top hits labelled.

React component VolcanoPlot, data through props. Uncertainty made visible: fits, intervals, survival and effect sizes. Tags: volcano, differential-expression, rna-seq, fdr, genomics, fold-change, canvas.

Install

npm i klar-charts

import 'klar-charts/styles.css'
import { ThemeScope, VolcanoPlot } from 'klar-charts'

# or copy the source:
npx shadcn@latest add https://klar.run/r/sci-volcano.json

Usage

<VolcanoPlot
  data={data}
  height={560}
  y={y}
  fcThreshold={1}
  fdr={0.05}
  labelTop={14}
  highlight={{ genes: ifnSet, label: 'IFN-α response' }}
  directions={['Higher in mock', 'Higher with IFN-β']}
/>

Related volcano plot charts