Skip to contents

Build sunburst from taxids

Usage

microbial_sunburst(
  taxids,
  ultimate_ancestor = "microbial\ncomposition",
  show_ranks = FALSE,
  ranks_to_include = c("strain", "species", "genus", "family"),
  special_taxid_names = c(unclassified = -1)
)

Arguments

taxids

NCBI taxonomy IDs (numeric)

ultimate_ancestor

Text to add to (string)

show_ranks

Should ranks of each lineage level be added to (boolean)

ranks_to_include

which ranks to include in lineage string (character)

special_taxid_names

for taxids <= 0 you can define special names. (named numeric vector where names = names and values = taxids)

Value

sunburst figure (plotly)

Examples

if (FALSE) {
taxids = c(rep(561, times = 10), rep(1639, times = 20), rep(529731, times = 10))
microbial_sunburst(taxids)
}