Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 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

Create Dendrograms and Tree Diagrams Using 'ggplot2'

v0.1.22
GPL-2 | GPL-3
Authors
Andrie de Vries [aut, cre], Brian D. Ripley [aut] (author of package tree)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.