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

View source: R/rpart.R

labels.rpartR Documentation

Make the nice labels used by print and summary.

Description

Make the nice labels used by print and summary.

Usage

## S3 method for class '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 compatibility: 0 -> minlength = 0; NULL -> minlength = 1; TRUE -> minlength = 4


ggdendro documentation built on March 18, 2022, 5:17 p.m.