Learn R Programming

kaps (version 0.9-2)

text: Methods for Function text

Description

Labels the current graphic device of the tree dendrogram with text.

Usage

## S3 method for class 'Tree':
text(x, splits = TRUE, all=FALSE,
		 digits = getOption("digits") - 3, fwidth=.7, fheight =.95,
		 type = "naive", x.range, y.range,...)

Arguments

x
object of class Tree.
splits
logical flag. If TRUE (default), then the splits in the tree are labeled with the criterion for the split.
all
Logical. If TRUE, all nodes are labeled, otherwise just terminal nodes.
digits
number of significant digits to include in numerical labels.
fwidth
Relates to option fancy and the width of the ellipses and rectangles. If fwidth < 1 then it is a scaling factor (default = 0.8). If fwidth > 1 then it represents the number of character widths (for current graphical device) to use.
fheight
Relates to option fancy and the height of the ellipses and rectangles. If fheight <1 then="" it="" is="" a="" scaling="" factor="" (default="0.8)." if="" fheight=""> 1 then it represents the number of character heights (for current graphical device) to use.
type
an argument to define the structure of terminal node. If type is "naive", print node number, number of sample, and median survival time. If type if "km", plot Kaplan-Meire curves for each terminal node.
x.range
Relates to viewport object
y.range
Relates to viewport object
...
other arguments to the text function can be passed here.