Correlation Matrix (fork)
INSTRUCTIONS
- navigate to data.txt and replace it with your data from q7 part one, keeping the first row there
- NOTE this is assuming the format set out in the spec (with key and value separated by a tab)
- you can fork this block or save your own version
INFO
- data2grid sets up a layout for that correlation matrix.
- chroma creates a color scale based on the extents of the correlation matrix (in this case it ignores correlations of 1, because the data set is random and so all correlations are quite low other than when both columns are the same).
- d3 draws the correlation matrix to the DOM.
forked and slightly modified from HarryStevens's block: Correlation Matrix