Plot.plot({
style: "overflow: visible;",
marginBottom: 50,
marginLeft: 75,
insetBottom: 10,
insetLeft: 10,
marks: [Plot.barY([23], {fill: "black", fillOpacity: 1}),
Plot.ruleX([6.5], {stroke: "gray", opacity: 0}),
Plot.ruleX([10], {stroke: "gray", opacity: 0}),
Plot.ruleY([0], {stroke: "gray", opacity: 0.2}),
Plot.text([`Spurious Correlations`], {x:6.5, y:21.5, frameAnchor: "middle", fontSize: 70, lineWidth: 25, textAnchor: "start", lineHeight: 1.2, clip: false, fill: "white", opacity: 1, fontStyle: "oblique"}),
Plot.text([`Drink less beer, Get attacked less by bears!!`], {x:6.5, y:18.9, frameAnchor: "middle", fontSize: 40, lineWidth: 25, textAnchor: "start", lineHeight: 1.2, clip: false, fill: "white", opacity: 1}),
Plot.text([`Months with higher % beer production saw a higher % of bear attacks.`], {x:7.7, y:10, frameAnchor: "middle", fontSize: 20, lineWidth: 10, textAnchor: "start", lineHeight: 1.2, clip: false, fill: "gray", opacity: 1, fontStyle: "oblique"}),
Plot.dot(beer_bear_correlation, {x: "perc_prod", y: "perc_attacks", r: 10, stroke: "#d2b48c", fill: "#d2b48c", title: d=>d.monthabb, opacity: 1}),
Plot.dot(beer_bear_correlation, {x: "perc_prod", y: d=>d.perc_attacks-0.1, r: 4, stroke: "lightblue", fill: "white", title: d=>d.monthabb}),
Plot.text(beer_bear_correlation, {x: d=>d.perc_prod+0.1, y: d=>d.perc_attacks+0.6, r: 3, fill: "gray", text: d=>d.monthabb}),
Plot.linearRegressionY(beer_bear_correlation, {x: "perc_prod", y: "perc_attacks", ci: 0.1, stroke: "white"}),
Plot.image(beer_bear_correlation, {x: 9.49, y: 4.9, width: 260,
src: "https://th.bing.com/th/id/OIP.YcBnzliiACwk4-5FX6qI5QHaHa?w=159&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7"
}),
Plot.image(beer_bear_correlation, {x: 9.6, y: 4, width: 100,
src: "https://th.bing.com/th/id/OIP._vZBqe6o4WNetvdqVfYAnwHaHP?w=171&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7"
}),
Plot.axisY({ tickSize: 0, fontSize: 18, label: "Percentage of Bear attacks", anchor: "left", labelAnchor: "center", ticks: 4}),
Plot.axisX({ tickSize: 0, fontSize: 18, label: "Percentage of Beer production", anchor: "bottom", labelAnchor: "center", ticks: 4}),
],
height: 700,
width: 900
})