Plot.plot({
width,
height: width / 2,
projection: {
type: d3.geoNaturalEarth1,
inset: 30,
domain: { type: "Sphere" }
},
color: {
domain: [d3.min(values), d3.max(values)],
type: "diverging",
scheme: "BuRd",
pivot: d3.median(values)
},
marks: [
Plot.graticule({ clip: "sphere" }),
Plot.geo(polygons, { stroke: "#FFF5", fill: "value" }),
Plot.geo(countries50m, { stroke: "#FFF3" }),
Plot.geo(land50m, { stroke: "#FFF9" }),
Plot.geo({ type: "Sphere" }, { stroke: "#444" })
]
})