recursivePlotInfo: a function to help organize plot info for clusterTree in a...

Description Usage Arguments

Description

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.

Usage

1
2
recursivePlotInfo(treeMatrix, leftBorderPlotRegion, bottomBorderPlotRegion,
  rightBorderPlotRegion, topBorderPlotRegion, labels_index, padding)

Arguments

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


rwoldford/trec documentation built on May 15, 2019, 6:29 p.m.