{
const lines2 = vl.markLine({opacity: 0.7, strokeWidth: 3})
.data(prior_posterior_transformed)
.encode(
vl.x().fieldQ("x").title("π"),
vl.y().fieldQ("beta").title("Distribution"),
vl.color().fieldN("label").title("Distribution")
.legend({orient: "none", legendX: 315, legendY: 55, strokeColor: "black", padding: 10, zindex: 1})
)
.title({text: "Prior and Posterior Distribution of π", subtitle: "Prior used by Pfizer"})
.width(500).height(250)
return lines2.render()
}