Observable PlotStatistical
Residual Plot
Residual plot for regression diagnostics showing fitted vs residuals.
Preview placeholder
residual-v1
Installation
Terminal
npx @ontopic/viz add plot/generic/residual-v1Props
| Prop | Type | Description |
|---|---|---|
fitted | number[] | Fitted values from model |
residuals | number[] | Residual values |
See full TypeScript interface on GitHub for all props.
Usage Example
TypeScript
import { ResidualPlot } from '@/viz/components/plot/generic/residual-v1';Metadata
- Last Updated2025-01-12
- FrameworkObservable Plot
- CategoryStatistical
- Subcategorygeneric
Observable Plot Statistical Diagnostics Residuals
Dependencies
@observablehq/plot
Quick Install
npx @ontopic/viz add plot/generic/residual-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.