Public
Edited
Jun 27
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
e4eData = FileAttachment("DIRTLPAwb+_interaction_matrix.tsv").text()
Insert cell
function createLegend(matrix, label = "Interaction strength") {
return Plot.legend({
color: {
domain: [
d3.min(matrix.map((e) => d3.min(e))),
d3.max(matrix.map((e) => d3.max(e)))
],
scheme: "blues"
},
width: 350,
height: 50,
ticks: 5,
label: label
});
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more