Public
Edited
Sep 28, 2023
Insert cell
Insert cell
Insert cell
data2 = penguins
Insert cell
Plot.plot({
marks: [
Plot.linearRegressionY(data2, {x: "culmen_length_mm", y: "culmen_depth_mm", stroke: "species"}),
Plot.dot(data2, {x: "culmen_length_mm", y: "culmen_depth_mm", stroke: "species"}),
Plot.density(data2, {x: "culmen_length_mm", y: "culmen_depth_mm", stroke: "species", opacity: 0.2})
],
color: {legend: true}
})
Insert cell
penguins
Type Table, then Shift-Enter. Ctrl-space for more options.

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