Plot.plot({
x: {
grid: true,
domain: [0, elevationData.max],
},
y: {
grid: true,
},
marks: [
Plot.dot(array, {x: "elevation", y: "lst", strokeOpacity: 0.1, r: 2}),
Plot.linearRegressionY(array, {x: "elevation", y: "lst", stroke: "red", strokeWidth: 5})
]
})