Observable PlotStatistical
Q-Q Plot
Quantile-quantile plot for comparing distributions or checking normality.
Preview placeholder
qq-plot-v1
Installation
Terminal
npx @ontopic/viz add plot/generic/qq-plot-v1Props
| Prop | Type | Description |
|---|---|---|
data | number[] | Sample data to check |
reference | 'normal' | number[] | Reference distribution |
See full TypeScript interface on GitHub for all props.
Usage Example
TypeScript
import { QQPlot } from '@/viz/components/plot/generic/qq-plot-v1';Metadata
- Last Updated2025-01-12
- FrameworkObservable Plot
- CategoryStatistical
- Subcategorygeneric
Observable Plot Statistical QQ Plot Normality
Dependencies
@observablehq/plot
Quick Install
npx @ontopic/viz add plot/generic/qq-plot-v1Related Components
recharts
Histogram (Recharts)
Distribution histogram with mean/median reference lines using Recharts.
recharts
Violin Plot
Kernel density estimation violin plots for distribution comparison across categories.
recharts
Scatter with Regression
Scatterplot with OLS regression line and confidence bands. Includes R-squared display.
plot
Marijuana Opinion Trend
GSS marijuana legalization trends by church attendance and other demographics.