Skip to contents

Creates a rooted phylogenetic tree from a distance matrix using either NJ (Neighbor-Joining) or UPGMA (Unweighted Pair Group Method with Arithmetic Mean) method.

Usage

create_rooted_tree(dist_mat, method = "nj")

Arguments

dist_mat

A distance matrix (dist object)

method

Character string specifying tree construction method: "nj" (default) or "upgma"

Value

A rooted phylo object