Plot.plot({
projection: { type: "albers-usa" },
color: {
type: "linear",
scheme: "RdYlBu",
domain: [0, 2.5],
legend: true,
label: "Water vapor (cm)"
},
marks: [
Plot.raster(vapor, {
fill: Plot.identity,
width: 360,
height: 180,
x1: -180,
y1: 90,
x2: 180,
y2: -90,
interpolate: "barycentric",
blur: 10,
clip: nation
}),
Plot.contour(vapor, {
value: Plot.identity,
width: 360,
height: 180,
x1: -180,
y1: 90,
x2: 180,
y2: -90,
interpolate: "barycentric",
blur: 10,
thresholds: 40,
strokeWidth: 0.5,
clip: nation
}),
Plot.geo(nation)
]
})