as.polytomy {ggtree}R Documentation

as.polytomy

Description

collapse binary tree to polytomy by applying 'fun' to 'feature'

Usage

as.polytomy(tree, feature, fun)

Arguments

tree

tree object

feature

selected feature

fun

function to select nodes to collapse

Value

polytomy tree

Author(s)

Guangchuang Yu


[Package ggtree version 2.0.4 Index]