define.clade: Define clade

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Function to define groups (clades) in a phylogenetic tree.

Usage

1
define.clade(tree, threshold, time, method = c("threshold", "time"))

Arguments

tree

Phylogenetic tree.

threshold

A threshold value to form the groups.

time

A cutting height (age) to form the groups.

method

Method to define the clades, "threshold" or "time".

Details

In the method threshold the total length of phylogenetic tree is used as cutting factor. If threshold is near to zero the cutting is near the root, if threshold near to one cutting is near the tips.

The phylogenetic tree must contain the node labels for the function work. Use the makeNodeLabel for defining node labels in a flexible way.

Value

clades

Tips and their clades.

height

The cutting height.

Author(s)

Vanderlei Julio Debastiani <vanderleidebastiani@yahoo.com.br>

See Also

makeNodeLabel

Examples

1
2
3
4
5
6
require(ape)	
tree<-makeNodeLabel(rcoal(20))
clades<-define.clade(tree, threshold = 0.8, method = "threshold")
clades
plot.phylo(tree, show.node.label = TRUE)
abline(v = clades$height)


Search within the PCPS package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.