Learn R Programming

TreeTools (version 1.0.0)

TipsInSplits: Tips contained within splits

Description

TipsInSplits() specifies the number of tips that occur within each bipartition split in a Splits object.

Usage

TipsInSplits(splits)

Arguments

splits

Object of class Splits.

Value

TipsInSplits() returns a named vector of integers, specifying the number of tips contained within each split in splits.

See Also

Other Splits operations: NSplits(), NTip(), TipLabels(), as.Splits(), match()

Examples

Run this code
# NOT RUN {
tree <- PectinateTree(8)#'
splits <- as.Splits(tree)
TipsInSplits(splits)

plot(tree)
LabelSplits(tree, as.character(splits), frame = 'none', pos = 3L, cex = 0.7)
LabelSplits(tree, TipsInSplits(splits), unit = ' tips', frame = 'none',
            pos = 1L)

# }

Run the code above in your browser using DataLab