GGenomics UI
Components/Viewers

Violin Plot

@genomics/violin-plot

Distributions across groups.

Preview

4 groups · MKI67
Use left and right arrow keys to step between points, Home and End for the first and last, Enter to select, Escape to clear.

About

Each group is a mirrored kernel-density silhouette with the median marked, the standard way to compare a value's distribution between conditions or clusters. Densities use a Gaussian kernel and a Silverman bandwidth.

Usage

import { ViolinPlot } from "@/components/ui/violin-plot"

<ViolinPlot data={{ groups, values }} valueLabel="expression" />
Registry dependencies
Source: components/ui/violin-plot.tsx