tree_labels function

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

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

tree_labels(model, uniform, ...)

Arguments

  • model: object of class "tree", e.g. the output of tree()
  • ...: ignored

Returns

a list with two elements: labelsandlabels and leaf_labels

See Also

ggdendrogram()

Other tree functions: dendro_data.tree(), get_data_tree_leaf_labels(), tree_segments()

Author(s)

Code modified from original by Brian Ripley

  • Maintainer: Andrie de Vries
  • License: GPL-2 | GPL-3
  • Last published: 2024-02-23