Public
Edited
May 13, 2023
2 forks
3 stars
Insert cell
Insert cell
Insert cell
Plot.plot({
inset: 10,
color: {legend: true},
marks: [
Plot.density(penguins.filter((d) => d.sex), {
weight: (d) => d.sex === "FEMALE" ? 1 - skew : 1 + skew,
x: "flipper_length_mm",
y: "culmen_length_mm",
strokeOpacity: 0.5,
clip: true
}),
Plot.dot(penguins.filter((d) => d.sex), {
x: "flipper_length_mm",
y: "culmen_length_mm",
stroke: "sex",
strokeOpacity: (d) => d.sex === "FEMALE" ? 1 - skew : 1 + skew
}),
Plot.frame()
]
})
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