my_circle_packing | R Documentation |
My Circle packing plot
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
)
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 |
ggplot
data(otutab)
cbind(taxonomy, weight = rowSums(otutab))[1:10, ] -> test
if (requireNamespace("igraph") && requireNamespace("ggraph")) {
my_circle_packing(test)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.