getSis: Get sister clade

View source: R/getSis.R

getSisR Documentation

Get sister clade

Description

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

Usage

getSis(tree,n,printZoom=TRUE)

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.

Value

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

Author(s)

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

Examples

data(DataOrnithodirans)
DataOrnithodirans$treedino->treedino
getSis(tree=treedino,n=677,printZoom=FALSE)
getSis(tree=treedino,n="Shenzhoupterus_chaoyangensis",printZoom=FALSE)

RRphylo documentation built on June 7, 2023, 5:49 p.m.