a function to help organize plot info for clusterTree in a recursive fashion First input is a ordered treeMatrix My model assumes we need to plot all rectangles, lines, labels etc on (0,1)*(0,1) canvas This function returns relative coordinates of rectangles, lines etc.
1 2 | recursivePlotInfo(treeMatrix, leftBorderPlotRegion, bottomBorderPlotRegion,
rightBorderPlotRegion, topBorderPlotRegion, labels_index, padding)
|
treeMatrix |
a ordered treeMatrix of clusterTree |
leftBorderPlotRegion |
coordinate of the plot region's left border on (0,1)*(0,1) canvas |
bottomBorderPlotRegion |
coordinate of the plot region's bottom border on (0,1)*(0,1) canvas |
rightBorderPlotRegion |
coordinate of the plot region's right border on (0,1)*(0,1) canvas |
topBorderPlotRegion |
coordinate of the plot region's top border on (0,1)*(0,1) canvas |
labels_index |
index of labels to paste in each appropriate position |
padding |
padding of rectangle in rectangle plot region |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.