Plot.plot({
projection: "albers-usa",
marks: [
Plot.geo(statemesh, {strokeOpacity: 0.4}),
Plot.dot(counties, Plot.geoCentroid({
r: (d) => d.properties.population,
fill: "currentColor",
stroke: "white",
strokeWidth: 1,
sort: sorted
? {channel: "r", order: "descending"}
: null
}))
]
})