Skip to content
Regression & effects

Scatter with LOESS

A scatterplot with population-sized points colored by a continuous value, overlaid with a precomputed LOESS summary line. Use it to show a relationship between two county-level measures while encoding size and a third gradient (e.g. deprivation) by color.

Theme

Scatter with LOESS

Installshow
viz add plot/health/scatter-loess-v1
Usageshow
TypeScript
import Component from '@/viz/components/plot/health/scatter-loess-v1';

Metadata

  • FrameworkObservable Plot
  • CategoryRegression & effects
  • Subcategorybrfss
  • Sourceplot/health/scatter-loess-v1
scatter loess bubble sequential-color

Dependencies

@observablehq/plot

Related Components

GSS Wording Experiments

A two-panel composite for visualizing GSS split-ballot wording experiments. The top panel shows pooled-across-years estimates by a moderator (party, race, age) as a paired-dot "dumbbell" plot — one dot per wording, connected by a gap label in percentage points. The bottom panel is the 1984–2024 time-trend with both wordings overlaid and design-adjusted 95% CIs. Built around the canonical "natfare" (welfare) vs "natfarey" (assistance to the poor) experiment, but the data shape generalizes to any GSS NAT___ / NAT___Y pair.

Scatter + regression

Scatterplots with OLS regression line, 95% confidence band, and R² display. Four flavors: a generic Recharts version built for European Social Survey data, plus three Observable Plot variants tuned for health-survey two-variable plots (basic, faceted by a third variable, regression overlay).

Geographic Map

Choropleth maps in Observable Plot using the US Albers projection. The primary variant covers US states with built-in TopoJSON; alternates handle generic geographies (any TopoJSON or county-level resolution), European countries, and ZIP-code resolution. All variants are responsive to container width and accept standard TopoJSON / GeoJSON inputs.

Bubble Map

Geographic bubble map with size-encoded values. Points positioned by lat/long, sized by a metric. Use when the data is point-located rather than region-aggregated — bubble maps avoid the "large area = more important" bias that choropleths can introduce when geographic regions vary dramatically in size.