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

rpart_segments

Extract data frame from rpart object for plotting using ggplot.


Description

Extract data frame from rpart object for plotting using ggplot.

Usage

rpart_segments(x, ...)

Arguments

...

ignored

model

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

See Also

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


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.