Plot.plot({
caption: "The river breakup time varies a bunch, but it has been tending towards earlier days of the year.",
width,
nice: true,
color: {
legend: true
},
x: {
tickFormat: "d",
},
y: {
grid: true
},
marks: [
Plot.line(iceClassic, { y: "Decimal Day of Year", x: "Year" }),
Plot.dot(iceClassic, {
y: "Decimal Day of Year",
x: "Year",
fill: d => d.am ? "AM" : "PM",
r: 4,
title: "date"
}),
Plot.linearRegressionY(iceClassic, { y: "Decimal Day of Year", x: "Year" }),
]
})