addSubNode: Add subnode to phylo4d_ext object

Description Usage Arguments Details Value See Also

Description

Add a subnode to phylo4d_ext object.

Usage

1
addSubNode(x, anc, dec, position, dataf, pos.is.fraction = FALSE)

Arguments

x

a phylo4d_ext object

anc

Node id of the ancestor on the branch on which the subnode is to be added

dec

Node id of the descendant on the branch on which the subnode is to be added

position

The position on the branch where the subnode is to be placed. It is stored as a faction of the branches' total length and is in relation to the ancestral node. In other words, a smaller value will be closer to the ancestral node.

dataf

a data.frame object which should be structurally similar to the data frame of the phylo4d object (data slot). It should contain data entries for the subnode.

pos.is.fraction

Specify whether position argument a fraction of the branch length or an absolute number.

Details

This is the main function in RBrownie for adding subnodes manually. It is used internally when reading in SIMMAP-formatted newick trees and can also be used to edit phylo4d_ext trees.

Value

Returns x with a new subnode added.

See Also

phyext, phyextPlot


phyext documentation built on May 2, 2019, 5:19 p.m.

Related to addSubNode in phyext...