Plot.plot({
width: 620,
style: {
backgroundColor: "black",
color: "oklch(95% 0.24 110deg",
padding: "10px"
},
color: {
range: [
"oklch(75% 0.19 224deg)",
"oklch(75% 0.32 146deg)",
"oklch(75% 0.34 312deg)"
]
},
x: { label: "Beak length (mm)" },
y: { label: "Beak depth (mm)" },
marks: [
Plot.linearRegressionY(penguins, {
x: "culmen_length_mm",
y: "culmen_depth_mm",
stroke: "species",
fillOpacity: 0.3
}),
Plot.dot(penguins, {
x: "culmen_length_mm",
y: "culmen_depth_mm",
fill: "species"
})
]
})