Plot.plot({
title: "Forgetting curve",
subtitle: "Retention (y) over time (x)",
caption: "Try sliding the number of repetitions input and see how retention changes.",
x: { label: "Time", ticks: [] },
y: { label: "Retention", domain: [0, scale], ticks: [scale], tickFormat: d => `${d}%` },
marginTop: 32,
marks: [
Plot.frame({anchor: "left"}),
Plot.frame({anchor: "bottom"}),
Plot.line(generateForgettingCurve(numRepetitions)),
]
})