function plotProfiles(data, subset) {
const plot = Plot.plot(
{
title: "Temperature profiles from Lake Washington",
y: {reverse: true, label: "Depth (m)"},
x: {label: "Temperature"},
width: 450,
height: 350,
color: {legend: true, scheme: "Viridis", label: ""},
marks: [
Plot.line(data,
{
x: "temperature",
y: "depth",
stroke: "date",
tip: true,
}
),
Plot.line(subset,
{
x: "temperature",
y: "depth",
stroke: "red",
strokeWidth: 3,
}
), ]}
);
return plot;
}