discr_Simmap {ontophylo}R Documentation

Reading unsummarized simmap for one tree

Description

Discretizes tree edges into identical bins given a selected resolution value.

Usage

discr_Simmap(tree, res)

Arguments

tree

simmap or phylo object.

res

integer. A resolution value for the discretization of tree edges.

Value

A simmap or phylo object.

Author(s)

Sergei Tarasov

Examples

data("hym_stm")
tree <- hym_stm[[1]][[1]]
stm_discr <- discr_Simmap(tree, res = 100)
# Check some arbitrary branch.
tree$maps[[8]]
stm_discr$maps[[8]]
sum(tree$maps[[8]])
sum(stm_discr$maps[[8]])


[Package ontophylo version 1.1.3 Index]