Plot.plot({
marks: [
Plot.dot(penguins,
{x: "flipper_length_mm",
y: "body_mass_g",
fill: "species",
symbol: "species",
opacity: 0.7,
r: 4
})
],
symbol: {legend: true},
facet: {data: penguins, x: "island"},
x: {label: "Flipper length (mm)"},
y: {label: "Body mass (g)"},
grid: true
})