Plot.plot({
color: { scheme: "Blues", legend: true },
marginRight: 100,
marks: [
Plot.frame({ strokeOpacity: 0.1 }),
Plot.rect(
dados,
Plot.bin(
{ fill: "mean" },
{
fx: "species",
fy: "island",
x: "flipper_length_mm",
y: "culmen_length_mm",
fill: "culmen_depth_mm",
tip: true
}
)
)
]
})