Plot.plot({
color: {legend:true, scheme: 'Turbo'},
marginLeft:100,
marginBottom:50,
marginRight:50,
marginTop:50,
height: 600,
width: 1200,
marks: [
Plot.dot(
fixed, {
x: d=>d[0], y: d=>d[1],
fill: (d,i) => i > data.length ? 'red' : 'grey',
r: 3,
title: (d,i) => i > data.length ?
`Title:${test_meta.concat(test_meta_lhd)[i][0]}\nField of Study:${test_meta.concat(test_meta_lhd)[i][1]}` :
null,
fillOpacity: 0.3,
strokeOpacity: 0.3,
tip: true
}),
Plot.density(fixed, { x: d=>d[0], y: d=>d[1], bandwidth, thresholds, strokeWidth: 0.1})
]
})