Learn R Programming

ggdendro (version 0.1.22)

rpart_labels: 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)

Arguments

model

object of class "rpart", e.g. the output of rpart()

...

ignored

Value

a list with two elements: $labels and $leaf_labels

See Also

ggdendrogram()

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

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