Extract data frame from rpart object for plotting using ggplot.
rpart_segments(x, ...)
...
ggdendrogram()
Other rpart functions: dendro_data.rpart(), rpart_labels()
dendro_data.rpart()
rpart_labels()
Useful links