Plot.plot({
color: { legend: true },
x: { type: "log", nice: true },
y: { type: "log", nice: true },
aspectRatio: 2,
facetAnchor: null,
marks: [
Plot.frame(),
Plot.dot(jp_lca_dat, {
x: x_axis,
y: y_axis,
r: 2,
stroke: "Group",
strokeWidth: 1,
symbol: 'plus'
}),
Plot.density(jp_lca_dat, {
x: x_axis,
y: y_axis,
fy: 'Group',
bandwidth: 30,
thresholds: 10,
stroke: "Group",
strokeOpacity: 0.2,
fill: "Group",
fillOpacity: 0.15,
mixBlendMode: "multiply",
weight: 1
}),
Plot.axisX({
anchor: "bottom",
facetAnchor: null
})
]
})