Plot.plot({
x: {label: "fastest speed ever driven (mph)"},
y: {label: "grade-point average"},
color: {legend: true},
marginTop: 25,
marginBottom: 35,
inset: 10,
title: "GPA and Speed are Not Strongly Related",
subtitle: "(but the males tend to drive faster, and to have slightly lower GPAs)",
caption: "Figure: Scatterplot of GPA vs fastes speed ever dirven, by sex`.",
nice: true,
marks: [
Plot.frame({fill: "#eaeaea"}),
Plot.gridY({stroke: "white", strokeOpacity: 1}),
Plot.gridX({stroke: "white", strokeOpacity: 1}),
Plot.dot(m111survey, Plot.pointer({x: "fastest", y: "GPA", r: 6, fill: "sex", fillOpacity: 0.5})),
Plot.dot(m111survey, {x: "fastest", y: "GPA", fill: "sex"}),
Plot.crosshair(m111survey, {x: "fastest", y: "GPA", ruleStrokeWidth: 1.5, maxRadius: 20})
]
})