function colorMyMap(color, data, width) {
return Plot.carto({
projection: "identity",
marks: [
Plot.feature(topojson.feature(us, us.objects.states), {
strokeWidth: 0.5
}),
Plot.features(topojson.feature(us, us.objects.counties).features, {
fill: (d) => data.get(d.id),
strokeWidth: 1,
stroke: (d) => data.get(d.id)
}),
Plot.feature(topojson.feature(us, us.objects.states), {
strokeWidth: .5,
stroke: "white"
}),
Plot.feature(topojson.feature(us, us.objects.nation), {
strokeWidth: 1,
stroke: "black"
})
],
width,
height: width * 2/3,
color
})}