Plot a sankey
sangji_plot(
tree,
top_N = 5,
notshow = c(),
intermediate = FALSE,
width = 3000,
height = 500,
...
)
result from ann_tree
each level has top_N
some words you don't want to show
logical, show the intermediate rank
width
height
look for parameters in sankeyNetwork
html widget
# \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
# }