Plot a sankey

sangji_plot(
  tree,
  top_N = 5,
  notshow = c(),
  intermediate = FALSE,
  width = 3000,
  height = 500,
  ...
)

Arguments

tree

result from ann_tree

top_N

each level has top_N

notshow

some words you don't want to show

intermediate

logical, show the intermediate rank

width

width

height

height

...

look for parameters in sankeyNetwork

Value

html widget

Examples

# \donttest{
if (requireNamespace("sankeyD3") && requireNamespace("tidytree")) {
  data(otutab, package = "pcutils")
  ann_tree(taxonomy[, c(1, 5, 6, 7)], otutab) -> tree
  sangji_plot(tree)
}
#> Loading required namespace: sankeyD3
# }