rpart_labels: Extract labels data frame from rpart object for plotting...

View source: R/dendro_rpart.R

rpart_labelsR Documentation

Extract labels data frame from rpart object for plotting using ggplot.

Description

This code is modified from the original plot.rpart in package rpart.

Usage

rpart_labels(x)

Value

a list with two elements: $labels and $leaf_labels

Author(s)

Original author Brian Ripley

See Also

ggdendrogram()

Other dendro_data methods: dendro_data(), dendro_data.rpart(), dendro_data.tree(), dendrogram_data()

Other rpart functions: dendro_data.rpart(), rpart_segments()


ggdendro documentation built on May 29, 2024, 6:12 a.m.