Plot.plot({
grid: true,
color: {
scheme: "spectral",
domain: topic_names,
legend: true
},
x: {
label: ""
},
y: {
label: ""
},
marks: [
Plot.dot(
filtered,
{
x: "embedding.x",
y: "embedding.y",
title: (d) =>
`${d.doi}\n ${d.title}\n ${d['journal.abbreviation']} ${d['journal.volume']} (${d['year']})`,
fill: "embedding.topic_name",
r: 6,
}
)
],
tooltip: {
stroke: "blue",
}
})