my_circle_packing {pcutils}R 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)
}


[Package pcutils version 0.2.5 Index]