Plot.plot({
marks: [
Plot.dot(salamanders, {
x: "totalLength",
y: (d) => d.weight,
fill: "creekSection",
opacity: 0.5,
r: "totalLength",
tip: true
})
],
x: { type: "log" },
y: { type: "log", grid:true },
color: { legend: true, domain: ["CC", "OG"], range: ["blue", "orange"] }
})