discr_Simmap: Reading unsummarized simmap for one tree

View source: R/paramo_functions.R

discr_SimmapR 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]])


ontophylo documentation built on May 29, 2024, 9:57 a.m.