Plot.plot({
marginTop: 75,
marks: [
Plot.axisY({ label: "\n\n\n\n\n↑ flipper_length_mm" }),
Plot.text(["My title\nover two lines"], {
frameAnchor: "top",
dy: -20,
fontSize: 30,
fontWeight: "bold",
lineAnchor: "bottom",
text: (d) => d
}),
Plot.dot(penguins, {
x: "culmen_length_mm",
y: "flipper_length_mm",
fill: "island"
})
]
})