Charts / React science and statistics charts / Distribution
Raincloud plot
Half-violin, box plot and raw points per group in one row, so the shape, the summary and every observation are visible at once.
React component Raincloud, data through props. The shape of many values: swarms, ridges, heat. Tags: raincloud, violin, box-plot, jitter, groups, distribution, experiment.
Install
npm i klar-charts
import 'klar-charts/styles.css'
import { ThemeScope, Raincloud } from 'klar-charts'
# or copy the source:
npx shadcn@latest add https://klar.run/r/sci-raincloud.json
Usage
<Raincloud groups={pvtGroups} height={384} axisLabel="Mean reaction time (ms)" format={ms} densityScale={scale} domain={[200, 600]} reference={{ value: 300, label: 'Lapse-risk threshold 300 ms' }} />
Related raincloud plot charts
- Deal beeswarm: Every open deal as a circle: days in stage across, stage by lane, size by amount, colour by risk.
- Tenure ridgeline: The spread of years at the company for each department, with the median marked.
- Cohort triangle: Net revenue retention for twelve monthly cohorts, month by month since signup.
- Dwell ridges: For each port, how many boxes waited each number of days between discharge and gate-out.
- Box plot: Median, quartiles and 1.5 × IQR whiskers per group, computed from the raw values, with outliers as dots, a mean marker and sample sizes.
- Spectrogram: Time–frequency power in dB on a canvas raster with harmonic callouts and annotation bands, for spotting tones, sweeps and resonances in a…