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

tree_labels

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


Description

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

Usage

tree_labels(model, uniform, ...)

Arguments

model

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

...

ignored

Value

a list with two elements: $labels and $leaf_labels

Author(s)

Code modified from original by Brian Ripley

See Also


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.