Usage: |
{data,text} = grstreebox(x,y,l,ncas,medi,deat,left,col,fontsize)
|
Input: |
| x | vector; coordinates of the boxes (terminal nodes) for the graph.
Specifically, reference points are in the center of the upper edge
of the box (12 o'clock), i.e., x contains x-coordinates of centers
in the boxes.
|
| y | vector; coordinates of the boxes for the graph. Specifically, each
row is the y coordinate of the upper edge of a box (12 o'clock).
|
| l | scalar; lenght of the edge of the box
|
| ncas | vector; number of cases in each (terminal) node
|
| medi | vector; median values
|
| deat | vector; death categories
|
| left | vector; indices of the nodes being left daughter nodes - used for
adjusting the text
|
| col | (2x1) vector; col[1] is the color of the boxes and col[2] color
of their descriptions
|
| fontsize | scalar; size of the used font
|
Output: |
| data | composed graphical object of the boxes |
| text | composed graphical object of the description |