ggdendro (version 0.1-20)

labels.rpart: Make the nice labels used by print and summary.

Description

Make the nice labels used by print and summary.

Usage

# S3 method for rpart
labels(object, digits = 4, minlength = 1L, pretty,
  collapse = TRUE, ...)

Arguments

digits

obvious

minlength

0 = don't abbrev factors; 1 = use single letters; 2+= the same arg as the "abbreviate" function

collapse

an oddly named argument: FALSE = return a matrix with two columns, containing the labels of the left and right descendants of each node; TRUE = return a vector of 1 column, with the label of the parent

...

= other args for abbreviate()

pretty:

for historical compatability: 0 -> minlength = 0; NULL -> minlength = 1; TRUE -> minlength = 4