Plot.plot({
marks: [
Plot.frame(),
Plot.dot(salamanders, {
x: "totalLength",
y: d => d.weight,
fill: "creekSection",
opacity: 0.5,
r: "totalLength",
sort: {channel: "fill"},
tip: true
})
],
y: {type: "pow", exponent: 0.5},
x: {domain: [0, 400], ticks: 5, reverse: true},
color: {range: ["cyan", "purple"], legend: true},
grid: true
})