Place Text on a Dendrogram Plot
Labels the current plot of the tree dendrogram with text.
## S3 method for class 'rpart' text(x, splits = TRUE, label, FUN = text, all = FALSE, pretty = NULL, digits = getOption("digits") - 3, use.n = FALSE, fancy = FALSE, fwidth = 0.8, fheight = 0.8, bg = par("bg"), minlength = 1L, ...)
x |
fitted model object of class |
splits |
logical flag. If |
label |
For compatibility with |
FUN |
the name of a labeling function, e.g. |
all |
Logical. If |
minlength |
the length to use for factor labels. A value of 1 causes them to be
printed as ‘a’, ‘b’, .....
Larger values use abbreviations of the label names.
See the |
pretty |
an alternative to the |
digits |
number of significant digits to include in numerical labels. |
use.n |
Logical. If |
fancy |
Logical. If |
fwidth |
Relates to option |
fheight |
Relates to option |
bg |
The color used to paint the background to annotations if |
... |
Graphical parameters may also be supplied as arguments to this
function (see |
the current plot of a tree dendrogram is labeled.
freen.tr <- rpart(y ~ ., freeny) par(xpd = TRUE) plot(freen.tr) text(freen.tr, use.n = TRUE, all = TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.