Published
Edited
Mar 19, 2021
Importers
56 stars
Insert cell
Insert cell
Insert cell
penguins = d3.json("https://vega.github.io/vega-datasets/data/penguins.json")
Insert cell
pairplot(penguins)
Insert cell
Insert cell
pairplot(penguins, { hue: "Species" })
Insert cell
Insert cell
pairplot(penguins, { hue: "Species", diag_kind: "hist" })
Insert cell
Insert cell
pairplot(penguins, { kind: "hist" })
Insert cell
pairplot(penguins, { hue: "Species", kind: "hist" })
Insert cell
Insert cell
pairplot(penguins, { hue: "Species", markers: true })
Insert cell
Insert cell
pairplot(penguins, {
vars: ['Beak Length (mm)', "Beak Depth (mm)", "Flipper Length (mm)"],
// kind_diag: 'auto',
// kind: 'scatter',
// markers: true,
width: 500,
height: 350,
spacing: -20,
hue: "Species",
hueVarType: 'nominal', // is automatically set when 'hue' variable is defined, but may be overwritten
// possible values: 'nominal', 'ordinal', 'quantitative'
palette: "deep", // may be any Seaborn / Vega-Lite color scheme string OR an array of colors
showLabels: true,
hideTooltips: true,
showGrid: true,
scaleZero: true
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more