Learn R Programming

TreeDist (version 2.11.1)

HPart: Hierarchical partition structure

Description

A structure of class HPart comprises a pointer to a C++ representation of hierarchical partitions, with the attribute tip.label recording the character labels of its leaves. HPart objects with identical tip labels can be compared using HierarchicalMutualInfo().

Usage

as.HPart(tree, tipLabels)

# S3 method for HPart as.HPart(tree, tipLabels = NULL)

# S3 method for default as.HPart(tree, tipLabels = NULL)

# S3 method for list as.HPart(tree, tipLabels = NULL)

# S3 method for phylo as.HPart(tree, tipLabels = TipLabels(tree))

is.HPart(x)

# S3 method for HPart print(x, ...)

# S3 method for HPart as.phylo(x, ...)

# S3 method for HPart plot(x, ...)

Value

HPart() returns a structure containing a pointer to a C++ representation of a hierarchical partition structure.

Arguments

tree

An object to convert to an HPart structure, in a supported format (see details).

tipLabels

Character vector specifying sequence in which to order tip labels.

x

HPart object to plot.

...

Additional arguments to plot.phylo.

Details

An HPart object may be created from various representations of hierarchical structures:

  • a tree (possibly phylogenetic) of class phylo

  • A hierarchical list of lists, in which elements are represented by integers 1 to n

  • A vector, which will be interpreted as a flat structure in which all elements bearing the same label are assigned to the same cluster