I have attached my plot function and a picture of the scatterplot. Can you please help me figure out how to sort the scatterplot correctly so that the x and y axes are sorted correctly to display the correct graph?
Plot.plot({
grid: true,
inset: 10,
x: {label: "home runs"},
y: {label: "hits"},
marks: [
Plot.dot(mlb_homeruns_stats, {x: "homeRuns", y: "hits", stroke: "playerName", r: "homeRuns", channels: {team: "teamName"}, tip: true,}),
]
})