Plot.plot({
y: { grid: true },
x: {
type: "log",
base: 2,
domain: [125, 8000],
ticks: [125, 250, 500, 1000, 2000, 4000, 8000],
},
marks: [
Plot.ruleX(data, {
x: "frequency",
y: "score",
fx: "side",
strokeWidth: 2,
}),
Plot.dot(data, {
x: "frequency",
y: "score",
fx: "side",
r: 8,
fill: "side",
}),
]
});