Grab the order of tips (sample_id) to use as levels for plotting.
tip_order.Rd
Grab the order of tips (sample_id) to use as levels for plotting.
Examples
counts_q <- system.file("extdata", "qiime", "table-dada2.qza", package = "bubbler")
asv_data_qiime(counts_q) %>%
asv_tree() %>%
tip_order()
#> Found more than one class "phylo" in cache; using the first, from namespace 'phyloseq'
#> Also defined by ‘tidytree’
#> ! # Invaild edge matrix for <phylo>. A <tbl_df> is returned.
#> ! # Invaild edge matrix for <phylo>. A <tbl_df> is returned.
#> [1] "L3S242" "L3S378" "L1S8" "L1S105" "L1S57" "L1S76" "L1S140" "L1S208"
#> [9] "L1S257" "L1S281" "L6S93" "L6S20" "L2S240" "L6S68" "L5S174" "L5S104"
#> [17] "L5S240" "L5S222" "L5S155" "L5S203" "L2S222" "L3S360" "L2S204" "L3S341"
#> [25] "L2S382" "L4S137" "L2S155" "L3S294" "L3S313" "L2S309" "L2S357" "L2S175"
#> [33] "L4S112" "L4S63"