Skip to contents

Draw a sunburst chart from hierarchical taxonomy abundances.

Usage

plot_taxonomy_sunburst(
  object,
  ranks = c("Kingdom", "Phylum", "Class", "Order", "Family", "Genus"),
  top_n = 50
)

Arguments

object

A microbiome_dataset object.

ranks

Taxonomy ranks used in the sunburst.

top_n

Number of taxa displayed at the deepest rank.

Value

A plotly htmlwidget.

Examples

data("global_patterns", package = "microbiomedataset")
plot_taxonomy_sunburst(global_patterns, ranks = c("Kingdom", "Phylum", "Class"))