Circlepack plot based on ggplot2

plot_circlepack(
  object,
  label_level = "Class",
  weight = c("intensity", "log_intensity"),
  ...
)

# S3 method for microbiome_dataset
plot_circlepack(
  object,
  label_level = "Kingdowm",
  weight = c("log_intensity", "intensity"),
  ...
)

Arguments

object

microbiome_dataset

label_level

label levels

weight

intensity or log_intensity

...

other params

Value

ggplot2 class object

Examples

library(microbiomeplot)
data("global_patterns")
global_patterns %>%
  activate_microbiome_dataset(what = "variable_info") %>%
  filter(Kingdom == "Archaea") %>%
  plot_circlepack(label_level = "Class")
#> Non-leaf weights ignored
#> Warning: Removed 62 rows containing missing values (geom_label_repel).