reconstructedNetwork: Remove Extinct Lineages from a Phylogenetic Network

View source: R/NetworkSim.R

reconstructedNetworkR Documentation

Remove Extinct Lineages from a Phylogenetic Network

Description

This function removes all extinct tips from a phylogenetic network, returning the reconstructed network.

Usage

reconstructedNetwork(net)

Arguments

net

An object of class 'evonet.'

Value

net The reconstructed network with all extinct tips removed.

Examples

set.seed(17) ##smallest Quartan prime as seed
##Generate a tree with extinct leaves
net<-sim.bdh.age(1,1,5,2,1,c(1/3,1/3,1/3),hyb.inher.fxn = make.uniform.draw(),complete=TRUE)[[1]]
recon_net<-reconstructedNetwork(net)
plot(net)
plot(recon_net)

jjustison/SiPhyNetwork documentation built on Sept. 14, 2024, 8:58 a.m.