Plot.plot({
projection: "albers",
width,
color: { scheme: "turbo", legend: true, nice: true, label: var0 },
marks: [
Plot.geo(nation),
Plot.geo(states, { strokeOpacity: 0.25 }),
Plot.raster(plotData, {
clip: true,
x: (d) => d.longitude,
y: (d) => d.latitude,
fill: (d) => d[var0],
opacity: 0.5,
interpolate: "barycentric",
blur: 5
})
]
})