Skip to contents

Generate a ggtree object based on the distance metric, from asv data

Usage

asv_tree(asv_data, method = "bray")

Arguments

asv_data

An asv_data_<qiime, tsv, phy, bracken> tibble.

method

Distance metric to be used. Default is "bray".

Value

A ggtree object.

Examples

counts_q <- system.file("extdata", "qiime", "table-dada2.qza", package = "bubbler")
asv_data_qiime(counts_q) %>%
    asv_tree()
#> Found more than one class "phylo" in cache; using the first, from namespace 'phyloseq'
#> Also defined by ‘tidytree’