Plot.plot({
color: {legend: true},
width: width,
facet: {data: penguins,x: 'island'},
marks: [
Plot.frame(),
Plot.dot(penguins, {x: "flipper_length_mm",
y: "culmen_depth_mm",
r:2,
stroke: "species",
title: (d) => `First Line\nsecond line\n${d.sex}`}),
Plot.linearRegressionY(penguins, {x: "flipper_length_mm", y: "culmen_depth_mm", stroke: "steelblue", ci: 0.95})
]
})