Plot.plot({
marks: [
Plot.ruleY([0, minFrequency2], { stroke: "orange" }),
Plot.barY(alphaFiltered, {
x: "letter",
y: "frequency",
fill: (d) => (d.frequency >= minFrequency2 ? "orange" : "lightgray")
})
],
x: {
domain: d3.sort(alphabet.map((d) => d.letter))
}
})