Published
Edited
Feb 21, 2021
9 stars
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
circlesX
Insert cell
circlesY
Insert cell
Insert cell
rowAve = edArrX.map(d=>d3.mean(d)) // return array of the means of rows
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
dCorr = dCor(edArrX, edArrY)
Insert cell
Insert cell
pearson_cor_formatted = format(pearson_cor)
Insert cell
format = d3.format('.4f')
Insert cell
distCor = format(dCorr)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
maxDistance = 100 //Infinity // Limit the search distance, if desired.
Insert cell
height = 2 * radius + 5
Insert cell
X.size()
Insert cell
Insert cell
Insert cell
d3 = require("d3@6")
Insert cell
Insert cell
Insert cell
Insert cell
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