Plot.plot({
inset: 40,
projection: {
type: "mercator",
domain: {
type: "MultiPoint",
coordinates: [[-122.434469, 47.495315], [-122.224433, 47.495315], [-122.434469, 47.734151], [-122.224433, 47.734151]]}
},
marks: [
Plot.sphere({fill: "lightblue"}),
Plot.geo(states, { fill: "black", stroke: "black", opacity: 1}),
Plot.raster(collisions, {x: "X", y: "Y", r: 4, fill: "hr", interpolate: interpolateinput}),
Plot.text(['Seattle collisions'], {x:-122.2, y: 47.612, dy: -240, dx: -100, frameAnchor: "middle", fontSize: 18, fontStyle: "oblique", lineWidth: 70, textAnchor: "start", lineHeight: 1.2, clip: false, fill: "gray", opacity: 1}),
Plot.text(['Data: IBM course capstone | Design: Deepsha Menghani\nThreads: @IandLoveAndData | Mastodon: @deepsha'], {x:-122.2, y: 47.612, dy: 220, dx: -190, frameAnchor: "middle", fontSize: 11, fontStyle: "oblique", lineWidth: 70, textAnchor: "start", lineHeight: 1.2, fill: "gray", opacity: 1}),
],
insetBottom: 20,
insetTop: 20,
height: 500,
width: 500,
})