my_circle_packing: My Circle packing plot

my_circle_packingR Documentation

My Circle packing plot

Description

My Circle packing plot

Usage

my_circle_packing(
  test,
  anno = NULL,
  mode = 1,
  Group = "level",
  Score = "weight",
  label = "label",
  show_level_name = "all",
  show_tip_label = TRUE,
  str_width = 10
)

Arguments

test

a dataframe with hierarchical structure

anno

annotation tablewith rowname for color or fill.

mode

1~2

Group

fill for mode2

Score

color for mode1

label

the labels column

show_level_name

show which level name? a vector contains some column names.

show_tip_label

show_tip_label, logical

str_width

str_width

Value

ggplot

Examples


data(otutab)
cbind(taxonomy, weight = rowSums(otutab))[1:10, ] -> test
if (requireNamespace("igraph") && requireNamespace("ggraph")) {
  my_circle_packing(test)
}


pcutils documentation built on June 26, 2024, 1:06 a.m.