Usage: |
{data,text} = grstreecircle(x,y,r,spv,ncases,median,deathcatg,left,col,fontsize,varname)
|
Input: |
| x | vector; coordinates of the circles (inner nodes) for the graph.
Specifically, reference points are at 12 o'clock, i.e., x contains
x-coordinates of centers in the circles.
|
| y | vector; coordinates of the circles for the graph. Specifically, each
row is the y coordinate of the very upper point of the circle (12 o'clock).
|
| r | scalar; radius of the circle
|
| spv | vector; split variable in the corresponding (inner) node
|
| ncases | vector; number of cases
|
| median | vector; median values
|
| deathcatg | 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 circles and col[2] color
of their descriptions
|
| fontsize | scalar; size of the used font
|
| varname | string vector; names of the covariates
|
Output: |
| data | composed graphical object of the circles |
| text | composed graphical object of the description |