Learn R Programming

RRphylo (version 3.0.0)

getSis: Get sister clade

Description

The function identifies and returns the sister clade of a given node/tip.

Usage

getSis(tree,n,printZoom=TRUE)

Value

The sister node number or sister tip name. In case of polytomies, the function returns a vector.

Arguments

tree

a phylogenetic tree. The tree needs not to be ultrametric and fully dichotomous.

n

number of focal node or name of focal tip.

printZoom

if TRUE the function plots the tree section of interest.

Author

Pasquale Raia, Silvia Castiglione, Carmela Serio, Alessandro Mondanaro, Marina Melchionna, Mirko Di Febbraro, Antonio Profico, Francesco Carotenuto

Examples

Run this code
data(DataOrnithodirans)
DataOrnithodirans$treedino->treedino
getSis(tree=treedino,n=677,printZoom=FALSE)->gs1
getSis(tree=treedino,n="Shenzhoupterus_chaoyangensis",printZoom=FALSE)->gs2

Run the code above in your browser using DataLab