Plot.plot({
insetRight: 100,
margin: 20,
projection: {type: "equirectangular", domain: { type: "MultiPoint", rotate: [120,30], coordinates: [ [-130, 65], [-80, 70], [-60, 60], [-130, 25]]}},
marks: [
Plot.sphere({fill: "lightblue"}),
Plot.geo(countries, {fill: "green", stroke: "#CCC", opacity: .75}),
Plot.dot(wind_turbine.slice(0,1), {x: "longitude", y: "latitude", dx: -200, dy: 220, rotate: 10, stroke: "yellow",fill: "white", width: 10, strokeWidth: 5, length: 30, strokeOpacity: 1}),
Plot.dot(wind_turbine.slice(0,1), {x: "longitude", y: "latitude", dx: -200, dy: 260, rotate: 10, stroke: "blue",fill: "green", width: 10, strokeWidth: 5, length: 30, strokeOpacity: 1}),
Plot.text(wind_turbine.slice(0,1), {x: "longitude", y: "latitude", text: d=>"New", dx: -180, dy: 224, fill: "gray", fontSize: 20, strokeOpacity: 1, textAnchor: "start"}),
Plot.text(wind_turbine.slice(0,1), {x: "longitude", y: "latitude", text: d=>"Existing", dx: -180, dy: 260, fill: "gray", fontSize: 20, strokeOpacity: 1, textAnchor: "start"}),
Plot.dot(wind_turbine, {x: "longitude", y: "latitude", r: 20, fill: "blue", width: 10, stroke: "white", strokeWidth: 2, length: 50, opacity: .4, filter: d=>d.commissioning_date <= yearinput}),
Plot.dot(wind_turbine, {x: "longitude", y: "latitude", r: 20, fill: "yellow", width: 10, stroke: "white", strokeWidth: 2, length: 50, opacity: .4, filter: d=>d.commissioning_date == yearinput+1}),
Plot.text(['Canada'],{x:-110, y: 56, fontSize: 30, fill: "#ccc", opacity: 1, lineHeight: 1.2, dy: -50 }),
Plot.text(['United States of America'],{x:-100, y: 36, fontSize: 30, fill: "#ccc", opacity: 1, lineHeight: 1.2, dy: -50 }),
Plot.text(['Canada\nwind turbine\nlocations'],{x:-70, y: 35, fontSize: 40, fill: "forestgreen", opacity: .8, lineHeight: 1.2, textAnchor: "start", fontFamily: "oblique", fontStyle: "italic"}),
Plot.text(wind_edited,{x:-70, y: 27.4, fontSize: 40, text: d=>d.yearchar, fill: "forestgreen", opacity: .8, lineHeight: 1.2, textAnchor: "start", filter: d=>d.year == yearinput }),
Plot.text(['Data: open.canada.ca | Design: Deepsha Menghani\nThreads: @IandLoveandData | Mastodon: @Deepsha'],{x:-50, y: 23.5, fontSize: 14, fill: "forestgreen", opacity: 1, lineHeight: 1.2, textAnchor: "end" })
],
insetBottom: 50,
width: 1200,
height: 700,
r: { range: [5, 20]},
})