Plot.plot({
projection: {
type: "albers-usa",
},
width,
color: {
scheme: "reds"
},
r: {range: [1,30]},
marks: [
Plot.geo(nation, {fill: "#eee", stroke: "black"}),
Plot.geo(statemesh, {strokeOpacity: 0.2}),
Plot.sphere( {stroke: "#ddd"} ),
Plot.dot(filteredData, {
x: "longitude",
y: "latitude",
r:d=>d.total_victims,
fill:"red",
stroke: "#eee",
title: (d) =>
`${d.location} \n fatality: ${d.fatalities} \n injured: ${d.injured} \n age of shooter: ${d.age_of_shooter}`
})
]
})