Extract labels data frame from rpart object for plotting using ggplot.
This code is modified from the original plot.rpart in package rpart.
rpart_labels(x)
model |
object of class "rpart", e.g. the output of rpart() |
... |
ignored |
a list with two elements: $labels and $leaf_labels
Original author Brian Ripley
Other dendro_data methods:
dendro_data.rpart()
,
dendro_data.tree()
,
dendro_data()
,
dendrogram_data()
Other rpart functions:
dendro_data.rpart()
,
rpart_segments()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.