Plot.plot({
marks: [
Plot.dot(data, {
x: "LA LIBERTAD AVANZA (%)",
y: "UNION POR LA PATRIA (%)",
fill: "Provincia",
stroke: "white",
tip: true,
r: 6
}),
Plot.linearRegressionY(data, {
x: "LA LIBERTAD AVANZA (%)",
y: "UNION POR LA PATRIA (%)",
stroke: "red"
}),
Plot.ruleX([18], { stroke: "grey", strokeWidth: 0.5 }),
Plot.ruleY([12], { stroke: "grey", strokeWidth: 0.5 })
]
})