Prototype 1 dendrogrammer
What this page does
- creates clusterArray, an array of objects to store the cluster data. Each object has the following properties:
(implicit is row number: the array index less 1) itemA, itemB, mergeH (short for mergeHieght)
- hard codes in the data shown below
- uses the largest mergeH to help decide the size of the canvas in the X axis and no of
leaf nodes to decide the Y axis
- sets up a Raphael canvas in the div element below here (the div has an id =canvas_container)
- draws a dendrogram ... {OK so I am working on it :P
Row |
First Data point/cluster in pair |
Second Data point/cluster in pair |
Merge Height (Or similarity) |
1 | 1 | 6 | 0 |
2 | 4 | 7 | 0 |
3 | 2 | 5 | 0 |
4 | 3 | 8 | 1 |
5 | 9 | 10 | 2 |
The largest mergeHt is 0.
There are 0 leaf nodes.
The canvas X setting is 0
and Y is 0. (Don't let the proportions fool you.
A Raphael canvas seems to have some minimum dimension in the X, maybe around 500, but no minimum in the Y)
Canvas div comes below here