Plot.plot({
color: { legend: true },
marks: [
Plot.dot(ncaabasketballstats2022, {
x: "points_per_game",
y: "win_percentage",
stroke: "points_per_game",
tip: true,
fill: "gray"
}),
Plot.linearRegressionY(ncaabasketballstats2022, {
x: "points_per_game",
y: "win_percentage"
})
]
})