Klar

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